[e-lang] Semi-bug: No trace from whenResolved block failure
Kevin Reid
kpreid at attglobal.net
Fri Sep 1 06:50:47 CDT 2006
If I use Ref.whenResolved and ignore its result, then a failure in
the block is discarded silently:
? { Ref.whenResolved(1 <- add(1), def foo(_) { throw("bang") })
> "some unrelated value" }
# value: "some unrelated value"
...nothing goes in the tracelog...
It would seem to me to be better, and more uniform, if the throw here
was logged, just as when the call resulting from an eventual send
fails, the throw is logged at the same time as it is converted into a
broken reference.
--
Kevin Reid <http://homepage.mac.com/kpreid/>
More information about the e-lang
mailing list