Reflection

Sean Kelly sean at f4.ca
Fri Mar 3 08:43:07 PST 2006


Bruno Medeiros wrote:
> Sean Kelly wrote:
>> And there are more in std/typeinfo.  The problem is that, as far as I 
>> know, the names of these classes are not standardized, nor is the 
>> output returned by the name method, so they're of limited direct use.  
>> For Ares I actually moved std/typeinfo into the runtime and don't 
>> expect the classes to be used directly, but rather for the user to do 
>> typeid(int) or whatever to return a reference to the appropriate 
>> TypeInfo object.
> 
> Uh, I think the idea in D/Phobos is the same, to use typeid(sometype) 
> and not the use the classes directly.

Then they shouldn't be in std.  That was my only point.


Sean



More information about the Digitalmars-d mailing list