lua-users home
lua-l archive

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

So why does my example print two copies of "hello" ?
Also why does 
>  load(function() return 1  end)
generate an infinite loop?

I am using the C++ try/catch rather than setjnp/longjmp in ldo.c.

Is this a bug, can you explain further or do I need to hit the debugger?


 Luiz Henrique de> wrote:
> On Sun, Jan 16, 2005 at 01:20:54PM +1000, David Burgess wrote:
> > The Lua base function load(), I do not understand. Can someone
> > please explain what its intended usage is?
> "load" is the equivalent of "lua_load": it loads a chunk via a reader function.
> --lhf