lua-users home
lua-l archive

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

>but leaves me confused about why the getglobal tag
>method that import sets lets the code executed with dofile see global
>functions like print and globals from the file that called import, but not

Because _ERRORMESSAGE is called implicitly in ldo.c and its value is not
obtained by calling lua_getglobal (calling lua_getglobal when handling errors
might generate other errors...)
But, yes, I see your point.