Crazy code by Adam on SO

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 29 18:34:25 PDT 2014


On Friday, 29 August 2014 at 19:22:42 UTC, Dicebot wrote:
> Btw, while I remember it, doing mixin("static import ...") is 
> highly recommended instead for namespace hygiene reason if you 
> are actually going to do anything with found symbols.

Logical. I've never actually used this trick for anything serious 
though, indeed, the first time I attempted it was writing that 
answer. It just occurred to me that a mixin with local imports is 
a solution to getting deeper and I slapped it down.

Amusingly, this is now my highest rated SO answer ever.


More information about the Digitalmars-d mailing list