lua-users home
lua-l archive

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


	Oi Roberto,

	tudo bom?  Quando voce colocou este exemplo:
> print = function (s)
>           if strlen(s) > 1000 then error("string too long to print") end
>           %print(s)   -- upvalue!
>         end
> 
>   The "%print" is evaluated when the function is declared, and its value
> is then fixed to the old print function. This old function, however, is
> not accessible from any other part of the program, since the global name
> "print" has been redefined.

	fiquei curioso de saber como voces resolvem o problema de coleta
da funcao print (original).

	Abraco,
		Tomas