On Thursday, 2 June 2016 at 23:35:53 UTC, ag0aep6g wrote:
It's the Algebraic. The `get` method isn't @nogc. The
documentation [1] says that it may throw an exception, which is
most probably being allocated through the GC. So that's a
reason why it can't be @nogc.
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.
[1] http://dlang.org/phobos/std_variant#.VariantN.get
Yeah... thanks a lot!