User loginNavigation |
Continuations and freeing the stackFor an error recovery system that supports resume, I was thinking of packing the current continuation in the exception object. However, that raises an issue with freeing the resources: even though the program pointer escaped the context of the error, there is still a way to return there with "resume". For example: def foo(x) = 3 + (50 / x) ... foo 0 catch e : DivisionByZero e.resume 42 #the answer is 42 | other throw other How do you normally deal with continuations that are returned from the current context? By Denis Bredelet -jido at 2006-12-10 16:36 | LtU Forum | previous forum topic | next forum topic | other blogs | 5567 reads
|
Browse archives
Active forum topics |
Recent comments
7 hours 35 min ago
1 day 12 hours ago
1 day 12 hours ago
6 days 13 hours ago
6 days 13 hours ago
6 days 13 hours ago
4 weeks 5 hours ago
4 weeks 5 days ago
4 weeks 5 days ago
5 weeks 6 hours ago