And if it isn't clear, since it is looking at foo's static binding, your macro is only binding the values from define-struct, not the syntaxes.
Jay On Sun, Oct 9, 2011 at 6:39 PM, Sam Tobin-Hochstadt <sa...@ccs.neu.edu> wrote: > On Sun, Oct 9, 2011 at 8:31 PM, Shriram Krishnamurthi <s...@cs.brown.edu> > wrote: >> What exactly does the struct form of match (in the ASL language) use >> to identify the structure? The following works fine: > > I'm not sure if ASL's match is the same as the one in `racket/match', > but almost certainly it's using the static struct info bound by to > `foo' by `define-struct'. You can see the documentation about that > here: > http://docs.racket-lang.org/reference/structinfo.html > > -- > sam th > sa...@ccs.neu.edu > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/dev > -- Jay McCarthy <j...@cs.byu.edu> 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/dev