lua-users home
lua-l archive

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


>If i use e.g.
>global in nil
>
>then any code that is dofiled or something has to obey to this, or it 
>won't work. quite a mess for any Standard Libraries.
>Libraries suddenly depend on how the user wants to handle globals.

No: "global" respect scopes. dofile'd programas are not executed in the same
scope of the calling program; dofile is not include.

>or do you have to do something like this:
>global strfind,print
>global in nil

Yes. In either order, as Roberto explained.

--lhf