Thanks, I didn't know where the documentation for define-record was.
To get the documentation of some macro or procedure, call it symbol,
you may try to go to http://chicken.wiki.br/symbol, which will often
redirect you to the right page and location. In this case, you'd try:
I'm sure this is a simple question but I can't quite figure it out. Is
there a way to get (define-record ...) to print out something other than the
tag of the record?
Example of current behavior:
(define-record point x y)
(define p (make-point 5 10))
p
=== #point
Example of desired behavior:
2010/7/7 Jack Trades jacktradespub...@gmail.com:
I'm sure this is a simple question but I can't quite figure it out. Is
there a way to get (define-record ...) to print out something other than the
tag of the record?
You want define-record-printer, which is a macro taking two
arguments, the
On Wed, Jul 7, 2010 at 1:58 PM, Peter Bex peter@xs4all.nl wrote:
Use define-record-printer:
http://chicken.wiki.br/man/4/Non-standard%20macros%20and%20special%20forms#define-record-printer
Cheers,
Peter
Thanks, I didn't know where the documentation for define-record was.
That's one
Just FYI, If you go to chickadee and start typing define-record, you will see
define-record-printer in the search box.
On Jul 7, 2010, at 17:27, Jack Trades jacktradespub...@gmail.com wrote:
On Wed, Jul 7, 2010 at 1:58 PM, Peter Bex peter@xs4all.nl wrote:
Use define-record-printer: