Restrict global functions

I was wondering if there was anyway to restrict a global function across particular files. Sort of like making a local function available to other files. Is this possible?

I want to use a particular function across a number of my own scripts but don’t want that function to conflict with another addon/script if that is installed by someone else.

Thanks

Just try to do [lua]include(“pathofyourluafile”)[/lua] and you should get all the stuff from the local scope of the included script

Nope, local vars ain’t visible to other files.

Ok, so local functions can be accessed using include.

I’m guessing a work around would be to redefine the local variables in the included file in a function as different local variables. Then use that function in another file to access the variables. Am I correct in thinking that would work?