lua: module import regarding local scope
问题 There are two script files with the following script //parent.lua function scope() local var = "abc" require "child" end //child.lua print(var) This way, child.lua will print a nil value because the scope in parent.lua does not expose its local features to the module. I thought it would, since the require directive is stated within this scope and after the declaration of var. My desire is to practically wholly inject all the lines of the child into the parent. The child script is just