Site Tools


package
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


package [2006/08/29 20:18] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +======Synopsis:======
 +__package__ <name>
 +
 +======Description:======
 +The PACKAGE command allows a script to "group" all of the [[assign]]s,
 +[[alias command|aliases]], [[bind]]s, [[ON]] hooks (and [[stub]]s) under
 +a common package name. When the PACKAGE command is used, any
 +alias/assigns/on that are registered until the end of the file are given
 +the current package name. The package name can be changed anywhere in a
 +script, even if PACKAGE had been previously used. However, packages only
 +last until the end of the file, they never propagate upwards. Scripts
 +that are loaded by other scripts may put themselves under a different
 +package name than the one being used by the loading script. By default,
 +a script is put into the package that is currently active in the script
 +that loaded it (or * if no package is active)
 +
 +======Options:======
 +<name>         name of the package to group the current script under
  
package.txt · Last modified: 2006/08/29 20:18 by 127.0.0.1