[racket] Redefining selectors - another newbie question
(define posn.x posn-x)
But that's not quite what you want :-)
On Jul 1, 2010, at 10:35 AM, Brad Long wrote:
> Thankyou racket gurus for your advice. My program using a "loop" now works:
> (for-each (fn(x)(display x)(newline)) (.. 10 1)) (display "blastoff!")
> --
> I have another question, is it possible (preferably easy) to use dot notation for the auto-generated selectors (e.g. for (point x y z), instead of point-x can we use point.x)? I am not exactly sure how to redefine that since it is auto-created on construction of the struct.
>
> I have just donned my flame-proof clothing.
>
> Thanks.
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users