libcoral/coral — Issue #12: Support for exception hierarchies (subtyping)
Author: tbastos
Created: 2011-11-03 05:21:38+00:00
State: open
Labels: api, enhancement

Proposed syntax: `exception NoConversionException extends LuaException`

- `hasSubtyping()` would thus return true for TK_EXCEPTION.
- `isSubTypeOf` would be moved from IClassType to IType.

A good set of tests, in C++ and Lua, will help determine if any API must be added. Will probably need something in Lua to test whether an exception type is a subtype of another.