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 | 5334 reads
|
Browse archives
Active forum topics |
Recent comments
27 weeks 1 day ago
27 weeks 2 days ago
27 weeks 2 days ago
49 weeks 3 days ago
1 year 1 week ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago