How would you do this in D?

Alexander aldem+dmars at nk7.net
Wed May 11 10:07:10 PDT 2011


On 11.05.2011 02:52, Andrei Alexandrescu wrote:

> Note that the macro version has other, arguably larger, drawbacks - e.g. it can't be used as an expression, evaluates the limit multiple times. pollutes the global namespace etc.

  BTW, I don't get it - why *scoped* variable is going to *global* namespace when declared "static"?

  This, IMHO, defeats the value and purpose of scoping...

/Alexander


More information about the Digitalmars-d mailing list