On Thursday, 2 June 2016 at 23:44:49 UTC, ag0aep6g wrote:
On 06/03/2016 01:35 AM, ag0aep6g wrote:
The alternative `peek` method is not documented to throw an
exception,
but it's not @nogc either. No idea why. Maybe Algebraic does GC
allocations internally. I wouldn't know for what, though. Or
it misses a
@nogc somewhere.
I've looked at the source to see if it's something simple, and
Algebraic/VariantN seems to be terribly complicated. Writing a
simpler @nogc tagged union may be easier than fixing the phobos
one, if the phobos one can even be made @nogc.
I'm also inside the source... yes, its not a simple one. I think
I will try to write my own one...