Why can't a method be virtual AND static at the same time?

Vladimir Panteleev vladimir at thecybershadow.net
Wed Jan 29 17:54:45 PST 2014


On Wednesday, 29 January 2014 at 14:24:12 UTC, Martin Cejp wrote:
> (though there's no way around having to use 2 different names 
> for the class and the const instance, is there?)

Actually, there is: http://dlang.org/class.html#anonymous

But I'm not sure if it works at module level.


More information about the Digitalmars-d mailing list