Extra .tupleof field in structs with disabled postblit blocks non-GC-allocation trait

Uknown sireeshkodali1 at gmail.com
Thu May 10 12:55:36 UTC 2018


On Thursday, 10 May 2018 at 11:06:06 UTC, Per Nordlöw wrote:
> On Wednesday, 9 May 2018 at 21:09:12 UTC, Meta wrote:
>> It's a context pointer to the enclosing 
>> function/object/struct. Mark the struct as static to get rid 
>> of it.
>
> Ok, but why an extra void* for `S.tupleof` and not for 
> `T.tupleof` which is also scoped inside a unittest?

I'm guessing T is a POD, so it doesn't need a context pointer, 
whereas S is not counted as a POD since a member function was 
@disabled.


More information about the Digitalmars-d-learn mailing list