Extra .tupleof field in structs with disabled postblit blocks non-GC-allocation trait
Meta
jared771 at gmail.com
Wed May 9 17:52:48 UTC 2018
On Wednesday, 9 May 2018 at 14:07:37 UTC, Per Nordlöw wrote:
> Why (on earth) does
>
> struct S
> {
> @disable this(this);
> int* _ptr;
> }
> pragma(msg, typeof(S.tupleof));
>
> prints
>
> (int*, void*)
>
> when
>
> struct S
> {
> int* _ptr;
> }
> pragma(msg, typeof(S.tupleof));
>
> prints
>
> (int*)
>
> ?!!!
I wasn't able to reproduce it on dmd-nightly:
https://run.dlang.io/is/9wT8tH
What version of the compiler are you using?
More information about the Digitalmars-d-learn
mailing list