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 <[email protected]>: > Hello, > > How can I rename accessors of structure fields? > > Regards, > José > > -- > José António Branquinho de Oliveira Lopes > 58612 - MEIC-A > [email protected] > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > -- Jay McCarthy <[email protected]> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93 _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

