On Saturday, 4 August 2012 at 08:06:31 UTC, Jonathan M Davis wrote:
On Saturday, August 04, 2012 09:57:36 Philippe Sigaud wrote:
For std.reflection that Andrei proposed 2 weeks ago, I feel the internal code will contain many __traits() calls. Nothing to be done about it.
__traits is *the* way compile-time introspection is done in D.

That and std.traits. Between those two and the power of is expressions, that's
where the ability to do compile-time introspection comes from.

There is nothing wrong about __traits, just about .stringof resp. __traits(identifier) in conjunction with string mixins.

David

Reply via email to