Sorry for delayed response...
This is actually a valid bug in our codegen. The actual
cause is that when we generate module-level code, we output void method and
"return 1" tries to generate return code which would, on IL level, attempt to
return non-void value from void function (that is in addition to the fact
that we should generate syntax error in such case just like CPython does -
"return statement outside of the function")
Now the reason you see it when you use RunFile and not with
ExecuteFile, is just the difference between the implementations of RunFile and
ExecuteFile.
Martin
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angelo Xu
Sent: Tuesday, November 08, 2005 5:04 PM
To: Discussion of IronPython
Subject: Re: [IronPython] How to do debugging for embedded usage
2005/11/4, Martin Maly <[EMAIL PROTECTED]>:
Because it it generated as a code snippet into the snippet assembly which doesn't have association with the source file and therefore the debugger cannot make the connection between the code and the source file.I'm going to look into whether this could get changed/fixed.Martin
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
