[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: GC de upvalues
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Fri, 31 Oct 1997 07:14:49 -0200 (EDT)
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