News for hackers. Stuff that matters.
Re:Mug: A New JavaScript compiler for the JVM by Autre on Monday January 10, 2011 @01:11PM (#2089200)
Just tried the following:

  for (var i = 0; i < 10; i += 1)
    eval("function function_" + i + "() { print('i am ' + i); }");

  for (i = 0; i < 10; i += 1)
    this['function_' + i]();
but it seems like eval is not supported yet - i guess for good reasons.

There are no comments on this comment yet.