[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: global
- From: Thomas Lavergne <thomas.lavergne@...>
- Date: Fri, 19 Apr 2002 19:29:05 +0200
>>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/