leftibot 97e8b0a251 Address review: add rethrow_typed and boxed_value accessors to eval_error
eval_error now stores the original Boxed_Value from script-thrown exceptions,
accessible via has_boxed_value() and boxed_value(). The new rethrow_typed<Types...>(engine)
method provides auto-unboxing without requiring exception_specification to be passed to eval().
This delivers the API simplification envisioned in issue #63: users can catch eval_error,
inspect the call stack, and rethrow as typed exceptions in a single catch block.

Requested by @lefticus in PR #682 review.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 15:42:29 -06:00
..
chaiscript Address review: add rethrow_typed and boxed_value accessors to eval_error 2026-04-14 15:42:29 -06:00