Opened 12 years ago
Closed 12 years ago
#899 closed defect (fixed)
typed-records: define-record-type constructor with arguments is specialized erroneously
Reported by: | Moritz Heidkamp | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | extensions | Version: | 4.8.x |
Keywords: | Cc: | ||
Estimated difficulty: |
Description
This program
(use typed-records) (define-record-type foo (make-foo bar) foo? (bar foo-bar foo-bar-set!)) (display (make-foo 1))
fails with Error: unbound variable: bar
when compiled with -specialize
. Tested with 4.8.0rc2.
Attachments (1)
Change History (5)
Changed 12 years ago by
Attachment: | define-record-type-specializations.patch added |
---|
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
I also noticed the egg uses `:' syntax to specify specializations (that get exported to the types file) although it's not documented anywhere that this is possible!
comment:3 Changed 12 years ago by
Milestone: | 4.8.0 |
---|---|
Owner: | set to felix winkelmann |
Status: | new → assigned |
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks - patch applied (0.3).
Note: See
TracTickets for help on using
tickets.
The generated specializations had slot symbols in them where one would expect #(1) style references to the arguments.
For example
instead of