From 87b90e5ef348d54569785d7aa4143fe3edff55ea Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 6 Apr 2016 06:33:45 -0700 Subject: Fix throw used instead of throwf in defstruct. * share/txr/stdlib/struct.tl (defstruct): Errors about duplicate :init, :postinit or :fini were incorrectly thrown using throw rather than throwf. --- share/txr/stdlib/struct.tl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'share') diff --git a/share/txr/stdlib/struct.tl b/share/txr/stdlib/struct.tl index 2f1692f5..2f9dcfb4 100644 --- a/share/txr/stdlib/struct.tl +++ b/share/txr/stdlib/struct.tl @@ -74,9 +74,9 @@ (unless (bindable arg) (sys:bad-slot-syntax slot)) (when instance-init-form - (throw 'eval-error - "~s: duplicate :init" - 'defstruct)) + (throwf 'eval-error + "~s: duplicate :init" + 'defstruct)) (set instance-init-form (cons arg body)) ^(,word nil nil)) @@ -84,9 +84,9 @@ (unless (bindable arg) (sys:bad-slot-syntax slot)) (when instance-postinit-form - (throw 'eval-error - "~s: duplicate :postinit" - 'defstruct)) + (throwf 'eval-error + "~s: duplicate :postinit" + 'defstruct)) (set instance-postinit-form (cons arg body)) ^(,word nil nil)) @@ -94,9 +94,9 @@ (unless (bindable arg) (sys:bad-slot-syntax slot)) (when instance-fini-form - (throw 'eval-error - "~s: duplicate :fini" - 'defstruct)) + (throwf 'eval-error + "~s: duplicate :fini" + 'defstruct)) (set instance-fini-form (cons arg body)) ^(,word nil nil)) -- cgit v1.2.3