Crazy code by Adam on SO
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 29 10:43:10 PDT 2014
On Friday, 29 August 2014 at 17:21:00 UTC, Philippe Sigaud via
Digitalmars-d wrote:
> I remember using the same 'module' trick a few years ago (that
> is,
> getting a name with __traits and testing whether it begins with
> "module " or not) and, like Adam, being a bit ashamed by what I
> just
> did :) While reading his book this summe, I was, like, "Oh,
> then this
> is what we all do".
>
> Ideally, there should be a __traits(getModules) or
> __traits(getImports, ...). I know, I know, "where is the PR?".
I have this in my TODO list but I want to take care of other
things in related domain first. DIP63 being the most important
priority
More information about the Digitalmars-d
mailing list