How would you do this in D?
Alexander
aldem+dmars at nk7.net
Wed May 11 11:40:51 PDT 2011
On 11.05.2011 20:07, Andrei Alexandrescu wrote:
> The macro name itself is polluting the global namespace.
OK, this I understand. But I cannot have something like:
{
static int i = 0;
}
{
static int i = 1;
}
This produces linker warning:
io.o:(.tdata.+0x0): multiple definition of `void io.main(immutable(char)[][]).int i'
Sure, this defined in function scope, not globally, but anyway...
/Alexander
More information about the Digitalmars-d
mailing list