Class methods in D?

Mehrdad wfunction at hotmail.com
Thu May 3 11:05:26 PDT 2012


> There's the RTInfo method I told you about (recently added) if 
> you want to stick the information directly into TypeInfo at 
> compile time.
>
> There's also static ctors.  Just add a hashtable based on the 
> class name, and use typeid(this).name as the initial key.  You 
> have to handle all the inheritance of properties yourself, but 
> that shouldn't be too difficult.
>
> -Steve

Ooh... how do I get RTInfo? It's not in druntime/phobos....


More information about the Digitalmars-d mailing list