GC and void[N] in struct
Steven Schveighoffer
schveiguy at gmail.com
Mon Aug 6 18:28:11 UTC 2018
On 8/6/18 2:22 PM, vit wrote:
> Hello,
> I have this struct:
>
> struct S{
> uint kind;
> void[N] data_;
define "N"
>
> }
>
> Instances of struct S are allocated by standard GC new and S.data_ can
> contain pointers/ranges to GC allocated data.
> If is GC disabled then program run fine. But when is GC enabled then it
> fail randomly.
how does it fail?
-Steve
More information about the Digitalmars-d-learn
mailing list