New __traits

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 25 18:20:47 PST 2015


On 26/11/2015 9:33 AM, BLM768 wrote:
> On Wednesday, 25 November 2015 at 15:39:17 UTC, Daniel Murphy wrote:
>> What you're seeing is just an artifact of how dmd's internals work.
>> 'std' is an 'import' (call Dsymbol.kind() for the category of symbol)
>> and you'll have to resolve it to work out which module/package is
>> being imported.  It's possible that this is a bug in the symbol
>> resolution, and that it should have already been resolved to a package.
>
> It seems that I can resolve the import by using "theImport.pkg", but I'm
> not sure if it's the "correct" way. It works in my tests, though. Is
> that the right way to do it, or is there a better method?
>
>

Unfortunately I have no idea.  You'll have to have a look at what other 
code that resolves packages is doing.

If you can't find it it might be worth emailing Kenji Hara, since he 
knows everything.


More information about the Digitalmars-d mailing list