package/seeall

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
(description from https://www.lua.org/manual/5.1/manual.html#pdf-package.seeall)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=seeall
+
|Description=Sets a metatable for module with its __index field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to {{GlobalFunction|module}}.
|Parent=package
+
|Description=Sets the __index member of the passed table to _G.
+
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
Line 8: Line 6:
 
{{Arg
 
{{Arg
 
|type=table
 
|type=table
|name=table
+
|name=module
|desc=The table to set its __index.
+
|desc=The module table to be given a metatable
 
}}
 
}}

Latest revision as of 18:44, 10 October 2016

 package.seeall( )

Description

Sets a metatable for module with its __index field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to module.

Arguments

table module

The module table to be given a metatable
Personal tools
Navigation