[racket] Renaming accessor

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue May 10 09:43:26 EDT 2011

struct doesn't support that directly. You'd have to just do

(define gimme-the-x posn-x)

I wrote "super-struct" a while back that does that and a lot more:

https://github.com/jeapostrophe/exp/blob/master/sstruct.ss
https://github.com/jeapostrophe/exp/blob/master/sstruct-tests.ss

There may be a little bit rot though.

Jay

2011/5/10 José Lopes <jose.lopes at ist.utl.pt>:
> Hello,
>
> How can I rename accessors of structure fields?
>
> Regards,
> José
>
> --
> José António Branquinho de Oliveira Lopes
> 58612 - MEIC-A
> jose.lopes at ist.utl.pt
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93



Posted on the users mailing list.