System programming in D (Was: The God Language)
Walter Bright
newshound2 at digitalmars.com
Fri Dec 30 15:34:27 PST 2011
On 12/30/2011 3:21 PM, Timon Gehr wrote:
> 2. it picks up all symbols used in $(...) from the caller's context rather than
> the callee's context and there is no way to get rid of that default, because the
> macro is unscoped.
That's characteristic of how macros work, and people want it that way.
Otherwise, they'd use functions or templates.
More information about the Digitalmars-d
mailing list