Crazy code by Adam on SO

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 29 12:22:41 PDT 2014


On Friday, 29 August 2014 at 19:04:33 UTC, Andrei Alexandrescu 
wrote:
>> The mixin("import "...) line was mind-blowingly ingenious, I 
>> have to
>> say. As are the mixin(x) lines where x is an alias, to coax 
>> the compiler
>> to recursively scan submodules. D seriously rawkz for 
>> compile-time
>> reflection.
>
> Worth redditing? Or too much information? :o)
>
> Andrei

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.


More information about the Digitalmars-d mailing list