[Mono-list] Mono.Tasklets on DLR/IronPython?

Tristan Zajonc tristanz at gmail.com
Sun May 30 18:47:11 EDT 2010


Hi,

It is possible to use Mono.Tasklets from IronPython?  I assume not, but I
just wanted to confirm this.  This example does not seem to work:

import clr
clr.AddReference('/usr/local/lib/mono/2.0/Mono.Tasklets.dll')
from Mono.Tasklets import Continuation

c = Continuation()
c.Mark()

foo = 123
val = c.Store(0)
print "{0} {1}".format(val, foo)
foo = 345
if (val < 5):
    c.Restore(val + 1)

Best,
Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100530/3fe3aa38/attachment.html 


More information about the Mono-list mailing list