[IronPython] Nested Functions

Martin Maly Martin.Maly at microsoft.com
Thu Sep 29 03:02:59 CEST 2005


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

________________________________

From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Kirk Olynyk
Sent: Friday, September 23, 2005 3:34 PM
To: users-ironpython.com at 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)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050928/88acc5f1/attachment.html>


More information about the Ironpython-users mailing list