lua-users home
lua-l archive

Re: global

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


>>Really? Interesting. so i can't use global for sandboxes in which
>>dofile
>>would be allowed?
>
>I'm not sure what you mean here.
>
Personnaly, I'd love to do this if I need only one function in a file, 
but with your proposal it's impossible :
foo = {}
do
 global in foo
 dofile("foo.lua")
end
bar = foo.bar
foo = nil
-- 
Thomas Lavergne "Le vrai rêveur est celui qui rêve
 de l'impossible." (Elsa Triolet)
thomas.lavergne@laposte.net 
d-12@laposte.net ICQ:#137121910 http://assoc.wanadoo.fr/thallium/

AltStyle によって変換されたページ (->オリジナル) /