[DGD] error context frames versus stack frames

Felix A. Croes felix at dworkin.nl
Thu Apr 13 20:01:19 CEST 2017


Carter Cheng <cartercheng at gmail.com> wrote:

> Is this basically used to locate the correct exception frame on the stack
> corresponding to the function activation? In something like C++ one has to
> unwind until one reaches a handler if it exists. I suspect in dgd's version
> of lpc one has two unwind until one gets to the "function activation" that
> originates the catch/rlimit blocks the resume execution after the
> catch/rlimit

Yes, there is an exception stack and a rlimits stack, both independent
of the function stack.  When handling an exception DGD actually takes
the exception stack as its lead, and unwinds function calls and rlimits
contexts as needed.

Regards,
Felix Croes



More information about the DGD mailing list