lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 8/16/07, Thomas Breuel <tmbdev@gmail.com> wrote:
We're having the same problem, and I asked about this a few days ago; unfortunately, there has been no official answer from the Lua, tolua, or tolua++ maintainers yet.

Unless we hear about anybody else working on an official solution soon, we're probably going to start modifying tolua++ (there are some other features we need as well).  I believe all tolua++ needs is to have a couple of hooks added so that the exception handlers can then be implemented as a loadable tolua++ extension (we're using tolua++ because of its improved garbage collection).

Cheers,
Thomas.

Is there any way I can get my hands on this or even help where I can? I was thinking of doing that exact implementation to fix the problem. It seems like a waste of effort. What do you think?

The solution you describe seems to be the cleanest and most universal fix. It allows for the most flexibility. I was also thinking that you need to specify the exception in the .pkg file.

example:
void MyFunction( someParameter ) throws

or maybe:
void MyFunction( someParameter ) throws ExceptionType

I have not even started to look at the design of toLua++ yet so I don't know, if in the second example, the type is even useful. It was just a couple of thoughts.
--
Regards,
Ryan
RJP Computing