
14 Mar
2007
14 Mar
'07
12:27 p.m.
Braddock Gaskill wrote:
Minor bug in the code I just posted, I left out b.add_callback(fa) in here.
Are there any thoughts on how && and || operators should properly handle exceptions?
These operators should create a new (composite)future, exposing the same interface as the (simple) futures you're composing. This composite future should handle the exceptions in a similar way as the embedded ones, i.e. propagate the exceptions catched in the embedded futures to the caller, as appropriate. Also, does your implementation of operator|| allow for constructs like f1 || f2 || f3 ? Regards Hartmut