chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Changing string representation for records


From: Chris Mueller
Subject: Re: [Chicken-users] Changing string representation for records
Date: Mon, 23 Sep 2013 13:30:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Thunderbird/17.0.8

Pretty Simple, thanks !

Am 22.09.2013 22:05, schrieb Evan Hanson:
Hi Chris,

On 2013-09-22 23:58, Chris Mueller wrote:
Is there any possibility to specify the string output for this
record instance?
Take a look at `define-record-printer`
(http://api.call-cc.org/doc/chicken/special-forms/define-record-printer), e.g.

     (define-record-printer matrix
       (lambda (m port)
         (fprintf port "#<matrix ~ax~a>" (matrix-rows m) (matrix-cols m))))

Cheers,

Evan

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users




reply via email to

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