And which version do you use? I use DMD 2.059 on Windows 7.
I get this compile error with your code
object.Error: Access Violation
----------------
41943C
4192C7
40F75B
40BE90
40BECA
40BAEB
4206E1
If i comment out this part
if (vs2 == vf) {
writeln("equal");
}
it works fine.