[racket-dev] struct + match not interacting via a macro

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Oct 10 08:13:23 EDT 2011

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 <samth at ccs.neu.edu> wrote:
> On Sun, Oct 9, 2011 at 8:31 PM, Shriram Krishnamurthi <sk at 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
> samth at ccs.neu.edu
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
>



-- 
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 dev mailing list.