From c68ee2c432758a6fde0b79afbb0fdcc7db628a7b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 10 Oct 2015 23:12:40 -0700 Subject: defstruct bugfix: nonexistent function called. * share/txr/stdlib/struct.tl (defstruct): The nonexistent uw-throwf function was called instead of throw. --- share/txr/stdlib/struct.tl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/share/txr/stdlib/struct.tl b/share/txr/stdlib/struct.tl index bd049f75..dcfcc864 100644 --- a/share/txr/stdlib/struct.tl +++ b/share/txr/stdlib/struct.tl @@ -72,9 +72,9 @@ (unless (bindable arg) (sys:bad-slot-syntax slot)) (when instance-init-form - (uw-throwf 'eval-error - "~s: duplicate :init" - 'defstruct)) + (throw 'eval-error + "~s: duplicate :init" + 'defstruct)) (set instance-init-form (cons arg body)) ^(,word nil nil)) @@ -82,9 +82,9 @@ (unless (bindable arg) (sys:bad-slot-syntax slot)) (when instance-fini-form - (uw-throwf 'eval-error - "~s: duplicate :fini" - 'defstruct)) + (throw 'eval-error + "~s: duplicate :fini" + 'defstruct)) (set instance-fini-form (cons arg body)) ^(,word nil nil)) -- cgit v1.2.3