How about adding NEW Special Tokens?? For ease and Security
bearophile
bearophileHUGS at lycos.com
Wed May 25 09:43:02 PDT 2011
pillsy:
> One addition that I would advocate for whic isn't on your list is
> a token called __GENSYM__ (or perhaps __UNIQUE__ would be a better
> name), which returns a string that's guaranteed to be unique and
> usable as an identifier; this could provide additional safety when
> metaprogramming with mixin templates and string mixins.
"__GENSYM__" name is too much ugly, and it's essentially a compile time function that keeps a size_t state across calls, so "gensym()" name seems better to me.
Bye,
bearophile
More information about the Digitalmars-d
mailing list