get type name from current class at compile time?

Jack jckj33 at gmail.com
Sun Apr 25 12:54:43 UTC 2021


On Sunday, 25 April 2021 at 08:36:51 UTC, Adam D. Ruppe wrote:
> On Sunday, 25 April 2021 at 03:45:13 UTC, Jack wrote:
>> that's better, thanks
>
> Imporant to remember that any compile time thing will be the 
> static type. If someone does:
>
> Base a = new Derived();
> a.something();
>
> it will still show up as Base in the this template.

I find out this later. I give up trying to get this in automatic 
way at compile time


More information about the Digitalmars-d-learn mailing list