How to call one static method from another?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 14 07:32:16 PDT 2016


On 6/14/16 6:08 AM, pineapple wrote:
> On Tuesday, 14 June 2016 at 07:35:36 UTC, Andrea Fontana wrote:
>> Simply:
>> method2();
>
> Also, typeof(this).method2();
>

Yes, if you want to distinguish between another function named method2.

-Steve


More information about the Digitalmars-d-learn mailing list