Reflection

Bruno Medeiros daiphoenixNO at SPAMlycos.com
Sat Mar 4 02:19:47 PST 2006


Sean Kelly wrote:
> 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

Ah then, got it. And I agree.

-- 
Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to 
be... unnatural."



More information about the Digitalmars-d mailing list