Dispatching on a variant

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Sep 26 14:41:22 PDT 2009


On Sat, Sep 26, 2009 at 4:50 PM, Jeremie Pelletier <jeremiep at gmail.com> wrote:

> Oh, that makes sense, but I don't see why you need language support for
> that, a variant type should be able to get most of it using type tuples,
> maybe just add support to switch on type tuples along with an opSwitch()
> method:

I'm pretty sure D2's std.typecons has something that almost does just
that. I don't know how it handles dispatching though.



More information about the Digitalmars-d mailing list