Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: compiler crash on indexing expression with function call  (Read 2367 times)

0 Members and 1 Guest are viewing this topic.

jbw

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • View Profile
compiler crash on indexing expression with function call
« 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!
Logged
 

Page created in 0.147 seconds with 22 queries.