lua-users home
lua-l archive

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

>  Roberto> I must say that this whole process of changing pcall/xcall
>  Roberto> seems somewhat smelly.
> Maybe so, but the primary reason I took on the project at all was that
> the previous version had half a dozen unfixable crash bugs caused by
> playing fast and loose with the interaction between Lua and PG.
> Accordingly, in my version I have tried to be as strict as possible
> about the correctness of all interactions with the PG code.
> [...]

If I understood correctly, the problem is accesses to PG between
an error and its proper handling.

Wouldn't be enough some internal flag to disable all operations?  An
error would set that flag, and some explicit operation (done after the
pcall, in case of errors) would reset it?

-- Roberto