Re: Behaviour of "local"
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Behaviour of "local"
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2001年2月23日 00:06:56 -0300 (EST)
>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
>_ERRORMESSAGE.
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.
--lhf