2010/12/15 Simen kjaeraas <[email protected]>:
> kenji hara <[email protected]> wrote:
>
>> I think that D should support __traits(isModuleName, ModuleName).
>>
>> Do you think?
>
> A way to traverse the hierarchy of identifiers would be nice.
> There is currently no way to identify an identifier as a template
> or module. I would say is( T == module ) and is( T == template )
> is the way to go, but I'm not entirely sure (they're not types,
> which is what is() deals in).
>
> --
> Simen
>

Even if we can use is(T == module), T should be valid identifier.
Then, we should treat the module name yet not imported as a string.
Therefore, Is-expression will not fit this.

Thanks.

Reply via email to