GC and void[N] in struct

Paul Backus snarwin at gmail.com
Mon Aug 6 21:23:36 UTC 2018


On Monday, 6 August 2018 at 20:22:36 UTC, vit wrote:
> On Monday, 6 August 2018 at 19:56:03 UTC, Steven Schveighoffer 
> wrote:
>>
>> BTW, is there a reason you aren't just using Algebraic?
>>
>> https://dlang.org/phobos/std_variant.html#.Algebraic
>>
>> -Steve
>
> primarily visit for Algebraic isn't pure, @nogc, @safe, nothrow.

I wrote the 'sumtype' package to solve this exact problem:

https://code.dlang.org/packages/sumtype


More information about the Digitalmars-d-learn mailing list