Proposal for __traits

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Wed Aug 22 12:44:05 PDT 2007


Leonard Dahlmann wrote:

> davidl Wrote:
> 
>> __traits itself is great
>> though i think adding some builtin properties for class would be nicer
> 
> That's basically a nice idea. The problem with that though is, that
> the properties would need to be available at both compile time
> and runtime.

Why do they have to be available at runtime? Is e.g. mystruct.tupleof
available at runtime? I think a greater problem appears because of symbol
collisions. Still, I wouldn't mind having metaproperties instead of
__something.



More information about the Digitalmars-d mailing list