Re: final switch on Algebraic

2015-03-29 Thread Meta via Digitalmars-d-learn
On Sunday, 29 March 2015 at 23:19:31 UTC, Freddy wrote: Is there any way to do a final switch statement in std.variant's Algebraic. Not currently. However, std.variant.visit is probably what you want. It enforces that you handle all types contained in the Algebraic. import std.variant;

final switch on Algebraic

2015-03-29 Thread Freddy via Digitalmars-d-learn
Is there any way to do a final switch statement in std.variant's Algebraic.