[ Previous ] [ Contents ] [ Index ] [ Next ]

Global Variables

In earlier releases of the AOLserver, global variables were shared between all Tcl interpreters in a virtual server. Beginning in Version 2.2, each Tcl interpreter has its own global variable table, so global variables are shared only within each Tcl interpreter by default. The ns_share command allows you to make a variable available to all interpreters in a virtual server.

Global variables are flushed when the Tcl interpreter is deallocated. A Tcl interpreter is deallocated explicitly when Ns_TclDeallocateInterp is called or implicitly at the end of a connection. This allows Tcl filter functions to access global variables set in ADPs.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.