lua-users home
lua-l archive

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

> Is there some policy that must be adhered to when mixing coroutines with
> the trowing and catching of errors?

Yes. You cannot yield "across" a C call. ("across" means there is an
active C function in the stack below who called yield.) That implies
you cannot yield inside pcall, string.gsub, table.sort, etc.

-- Roberto