chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1583: coops record-printer for instances do not work


From: Chicken Trac
Subject: [Chicken-janitors] #1583: coops record-printer for instances do not work
Date: Sat, 02 Feb 2019 15:02:09 -0000

#1583: coops record-printer for instances do not work
------------------------+--------------------------------
 Reporter:  kooda       |                 Owner:
     Type:  defect      |                Status:  new
 Priority:  minor       |             Milestone:  someday
Component:  extensions  |               Version:  5.0.0
 Keywords:              |  Estimated difficulty:  easy
------------------------+--------------------------------
 As reported on IRC by matijja, coops’ record printer for class instances
 does not work.

 http://paste.call-cc.org/paste?id=c0e12d0a9d9bbd2e513fe88092f38be9e7afb6c3

 While redefining a record printer for it makes everything work as
 expected:

 http://paste.call-cc.org/paste?id=4e21716d788acd4c207a5a1ee14e11fa8cfd952e

 From what I could gather, coops uses the record-variant egg to define its
 `coops-instance` record type.

 It appears the egg has not been updated to add the new module prefix of
 the record symbol, so it registers the record type as just being `coops-
 instance`, while the `define-record-printer` macro correctly adds the
 module prefix, making them distinct from each other, the printer is then
 never used.

 If we update the record-variant egg, we also would have to update coops,
 because it uses `##sys#check-structure` directly.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1583>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]