package/seeall

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=seeall |Parent=package |Description=Sets the __index member of the passed table to _G. |Realm=Shared |IsClass=No }} {{Arg |type=table |name=table |desc=T...")
 
(description from https://www.lua.org/manual/5.1/manual.html#pdf-package.seeall)
 
(One intermediate revision by one user not shown)
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
+
|Realm=Shared and Menu
|Description=Sets the __index member of the passed table to _G.
+
|Realm=Shared
+
 
|IsClass=No
 
|IsClass=No
 
}}
 
}}
 
{{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