Closures are not yet supported by IronPython. I am fixing this as we speak :)


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Olynyk
Sent: Friday, September 23, 2005 3:34 PM
To: users-ironpython.com@lists.ironpython.com
Subject: [IronPython] Nested Functions

# This works on CPython but not on IronPython 9.2

 

def f (i):

    def g ():

        return i+1

    return g()

print f(3)

_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to