On Mon, 31 Jan 2011 02:04:11 -0500, g g <[email protected]> wrote:

IDK where to put this.

first thing:
Could it be a way to collapse Variants in std.variant?, like
Variant x = Variant(1)
Variant y = Variant([x,x,x,x])
//y could be simplified to Variant(int[]) instead of Variant(Variant(int)[])
//now it is not implemented (as far i know)

// Although this has to be true
assert( y.type == typeid(Variant[]) );
// Should coerce support such lowering/conversions/collapses? i.e.
int[] z = y.coerce!(int[])();

Reply via email to