
23 Nov
2009
23 Nov
'09
3:10 p.m.
Anthony Williams wrote:
"Peter Dimov" <pdimov@pdimov.com> writes:
Anthony Williams wrote:
Gottlob Frege <gottlobfrege@gmail.com> writes:
- if the exception handling and/or recursion handling are worthwhile options
I don't believe so.
Exceptions need to be handled properly. Recursion does not.
The current implementation handles exceptions "properly" in the sense that if the once function exits with an exception then it is not marked as called and another thread (possibly one of those waiting) will call it.
Yes, this is the correct behavior.
The suggestion is to optionally have the function marked as called even if an exception is thrown. I don't think this is worthwhile.
I agree.