small template and mixin frustration...

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 6 15:56:12 PDT 2015


On Saturday, 6 June 2015 at 21:52:32 UTC, WhatMeWorry wrote:
> How does .stringof, differ from __traits(identifier... ?

http://dlang.org/property.html#stringof:
> Note: Using `.stringof` for code generation is not recommended, 
> as the internal representation of a type or expression can 
> change between different compiler versions.
>
> Instead you should prefer to use the `identifier` trait, or one 
> of the Phobos helper functions such as `fullyQualifiedName`.


More information about the Digitalmars-d-learn mailing list