[IronPython] More fun with delegates

Dan Eloff dan.eloff at gmail.com
Fri Nov 21 05:12:24 CET 2008


On Thu, Nov 20, 2008 at 4:33 PM, Srivatsn Narayanan
<srivatsn at microsoft.com> wrote:
> Hi Dan,
>
>  The parameterless Action is actually defined in System.Core.dll so you need to reference that. The crash ofcourse needs to be fixed. There is already a bug on that - http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=19133
>

Ok, I understand that now. But what about this?

>>> def echo(x):
...     print x
...
>>> d.BeginInvoke(echo, 2)
TypeError: expected Delegate, got function

It works fine on Silverlight.

Thanks,
-Dan



More information about the Ironpython-users mailing list