strange Variant bug...
Lloyd Dupont
ld-REMOVE at galador.net
Tue Jun 21 07:05:05 PDT 2011
I have DMD2.053 on Windows 7 x64
The following program compiled and crash on the line where I compare v7 and
v1
=====================
module main;
import std.variant;
import std.stdio;
class Foo
{
}
int main(string[] argv)
{
Variant v1 = Variant.init;
Object o = new Foo();
Variant v7 = Variant(o);
writeln(v7 == v1);
return 0;
}
=====================
What's going on? and any work around?
I do need to use untyped / Object Variant!
More information about the Digitalmars-d
mailing list