typeof()

Steven Schveighoffer schveiguy at yahoo.com
Thu Oct 20 07:13:43 PDT 2011


On Thu, 20 Oct 2011 10:07:12 -0400, Gor Gyolchanyan  
<gor.f.gyolchanyan at gmail.com> wrote:

>> D's runtime type info is very limited, so you may not be able to get  
>> what you are looking for.
>
> D's compile-time type info is very rich and it's easy to remember it
> for run-time use.

Yes, but if what you need is run time type info (like information about  
the derived class of a concrete base reference), then you cannot use  
compile-time type info.

-Steve


More information about the Digitalmars-d mailing list