Wintermute Engine Forum

Wintermute Engine => Bug reports => Topic started by: jbw on December 02, 2007, 01:24:26 PM

Title: compiler crash on indexing expression with function call
Post by: jbw on December 02, 2007, 01:24:26 PM
Code: [Select]
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!