What is the meaning of this?
Neal Gafter
neal at gafter.com
Fri Jan 29 09:53:08 PST 2010
On Fri, Jan 29, 2010 at 9:42 AM, Mark Mahieu <markmahieu at googlemail.com> wrote:
> The User Guide at http://groovy.codehaus.org/Closures says:
>
> "this : as in Java, this refers to the instance of the enclosing class where a Closure is defined"
>
> As in Java. Well, fancy that.
The last language from Alex's list to check out is Python. I believe
a lambda in Python is fully transparent (but contains only an
expression), but perhaps someone with more familiarity can fact-check
me on that.
If I have that right, then all of the languages Alex suggests we check
for reference give "this" the same meaning as in the enclosing scope.
More information about the lambda-dev
mailing list