[Prev][Next][Index][Thread]

Re: stupid macro question




John Whittaker wrote in message ...
>While macros seem to be the topic of the week,  I thought I'd try to get my
>silly macro question answered by the experts.
>
>My question is: Can you insert totally non-Dylan stuff as text inside a
>macro?  In other words,  the text within the brackets after the test-code =
>...  would be actual C++ code.  I don't think that Dylan allows you to
match
>on totally non-Dylan text, but I thought I'd ask.  If Dylan could match on
>this, I would then like to put quotes around it (i.e., make it a string)
and
>store it into some slot in the hypothetical test class.  With all the other
>talk about the ?:* pattern, it seemed at least worth asking.


There is no Dylan macro equivalent of "CDATA", if that's what
you're asking.  Stuff on both the left- and right-hand side of patterns
has to be valid Dylan fragments, where the grammar of these
fragments is defined in the Macros spec.





References: