News for hackers. Stuff that matters.
Re:Introducing Swift by curveship on Monday June 02, 2014 @08:45PM (#7837511)
Yep, this is as per spec: http://www.ecma-international.org/ecma-262/5.1/#sec-10.4.2 . "Indirect" calls to eval (i.e. assigning eval to another variable, like you did by passing it as a param) are evaluated in terms of the global environment. "Direct" calls, like in your second example, use the local environment.

There are no comments on this comment yet.