[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Yielding from hooks
- From: Albert-Jan Brouwer <acj.brouwer@...>
- Date: Wed, 23 Apr 2003 16:56:58 +0200
Roberto Ierusalimschy wrote:
> Currently there is no "standard" way to prevent an invalid yield if
> the hook is called inside a metamethod or a "for" iterator function,
> (...)
Does putting "if (L->nCcalls > 0) return;" in the hook before the
yield prevent all invalid yields or is there more that needs
checking?