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 | 5317 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 19 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago