[Prev][Next][Index][Thread]
RE: define tag macro
> I could use a little help with a macro. The first example below
> expands correctly, but the ones with #key in the macro call don't.
> I think the examples show pretty clearly what I want to happen.
> Basically if there are any args other than the required page,
> response, and body args, I want to require #key to be specified.
> Is there something special about #key in the left-hand side of
> a pattern?
Yes, #key in a pattern matches a property list in the input, not
the #key token itself. In FunDev you can escape the special
interpretation of a pattern element by prefixing it with a backslash,
so:
arguments:
{ } => { }
{ , \#key ?more:* } => { , #key ?more }
should work there, but is non-standard.
> [...]
-- Keith
References: