Can you use RTTI to determine a union member?

Bill Baxter dnewsgroup at billbaxter.com
Tue Oct 16 10:23:35 PDT 2007


BCS wrote:
> Reply to Janice,
> 
>> On 10/16/07, Christian Kamm
>> <kamm.incasoftware at shift-at-left-and-remove-this.de
>>
>>> If A, B, C are classes, you could also check with
>>>
>>> u.a.classinfo is A.classinfo
>>> u.a.classinfo is B.classinfo
>>> u.a.classinfo is C.classinfo.
>> That's really cool, but I can't find any documentation on .classinfo.
>> I looked on the DigitalMars site in the pages "Classes", "Expressions"
>> and "Properties", and after that I got stuck. Where is this
>> documented?
>>
> 
> look under the phobos docs
> 
> 

Specifically under "object", right at the top.  There's a bunch of 
useful stuff documented in there.

--bb



More information about the Digitalmars-d mailing list