Best way to refer to the type of a struct inside itself ?

wjoe invalid at example.com
Fri May 15 14:37:01 UTC 2020


On Friday, 15 May 2020 at 13:52:38 UTC, Paul Backus wrote:
> On Friday, 15 May 2020 at 13:47:43 UTC, wjoe wrote:
>> struct Foo(A, B, C, size_t a, size_t b)
>> {
>>   alias foo_t = Foo!(A, B, C, a, b); // is there a better way 
>> to get foo_t ?
>> }
>
> typeof(this)

Thanks :)


More information about the Digitalmars-d-learn mailing list