struct A { char[] sval = "test"; bool bval = true; int ival = 3; double dval = 4f/3; real rval = 8f/3; }
should likely be: struct A { char[] sval = "test"; bool bval = true; int ival = 3; double dval = 4f/3f; // 4/3f should work to real rval = 8f/3f; }