Re: [racket] syntax-id-rules

2011-12-08 Thread Harry Spier
On Thu, Dec 8, 2011 at 4:03 PM, David Vanderson wrote: > I can't speak authoritatively, but I don't think that an identifier macro > captures any syntax before the identifier.  I think set! is a special case. > Many thanks David, this makes everything much clearer. Harry __

Re: [racket] syntax-id-rules

2011-12-08 Thread David Vanderson
On 12/08/2011 09:48 AM, Harry Spier wrote: I get the error for (get array-element v1[1 1 1] "expand: unbound identifier in module in: get" I can't speak authoritatively, but I don't think that an identifier macro captures any syntax before the identifier. I think set! is a special case. and

[racket] syntax-id-rules

2011-12-08 Thread Harry Spier
Dear list members, As an exercise to learn Racket macros I'm setting up macros as getters and setters on multi-dimensional arrays where the array reference is array[dimension1 dimension2 ...] This is useful for my application but the main reason is to learn macros. I'm able to set up getter and s