lua-users home
lua-l archive

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


On Fri, Jun 5, 2009 at 9:12 AM, Mark Hamburg<mark@grubmah.com> wrote:
> The only standard routines I've had cause to monkey patch are
> coroutine.yield and coroutine.resume. This was done so that one could yield
> back to the scheduler while still using coroutines as coroutines by passing
> an extra token back in the actual yield/resume interaction.

In our engine we're overloading ("monkey patching"):

print -- prints to log instead of console.
dofile, loadfile -- caches loaded code in the engine internals
math.random -- with implementation from lrandom

Alexander.