Wintermute Engine > Bug reports

compiler crash on indexing expression with function call

(1/1)

jbw:

--- Code: ---var x; //-- create new container

//-- create x.n1 entry in 2 steps
var n = "n"+ToString(1); //-- establish the name "n1"
x[n] = 1; //-- initialize entry under that name: so far, so good ;-)

//-- the same in 1 step is impossible because of compiler crash
x["n"+ToString(1)] = 1; //-- would you like the same, but smarter? forget it!

--- End code ---

Navigation

[0] Message Index

Go to full version