Re: [Chicken-users] Changing string representation for records
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 Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Changing string representation for records
Hi, i've currently a generell question about string representation/output for records within the chicken interpreter. Assume: (define-record matrix rows cols data) #;1 (make-matrix 2 1 (f64vector 1 2)) #matrix Is there any possibility to specify the string output for this record instance? This would be great :) Chris ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Changing string representation for records
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 Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users