Module level variable shadowing

Tofu Ninja via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 27 13:38:25 PDT 2014


On Friday, 27 June 2014 at 08:24:16 UTC, dennis luehring wrote:
> what i don't understand - why on earth should someone want to 
> shadow a(or better any) variable at all?

It can be useful if you are using mixins where you don't know 
what is going to be in the destination scope.


More information about the Digitalmars-d mailing list