[e-lang] makeLazySlot: "nonlocal exit by lazy slot's maker"

Thomas Leonard tal at it-innovation.soton.ac.uk
Fri Jan 7 05:20:39 PST 2011


makeLazySlot checks that it was successful by checking that the result
is resolved. This doesn't work if the maker function returns a promise.

Here's a patch:

http://gitorious.org/~tal-itinnov/repo-roscidus/it-innovation/commit/63aa9352a6b4bad1878fa75f1f2d563b3aeac84c

A side-effect of this is that the maker function can now be garbage
collected once it's been used.


-- 
Dr Thomas Leonard
IT Innovation Centre
2 Venture Road
Southampton
Hampshire SO16 7NP

Tel: +44 0 23 8076 0834
Fax: +44 0 23 8076 0833
mailto:tal at it-innovation.soton.ac.uk
http://www.it-innovation.soton.ac.uk 



More information about the e-lang mailing list