Nsv array

From AOLserver Wiki
Revision as of 19:41, 7 February 2009 by Gustafn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/nsv_array.html


NAME

nsv_array - Tcl array functionality in nsvs

SYNOPSIS

nsv_array get array ?pattern?
nsv_array set array value-list
nsv_array reset array value-list
nsv_array exists array
nsv_array size array
nsv_array names array ?pattern?

DESCRIPTION

nsv_array works much like the Tcl array command.

EXAMPLES

Basic

   % nsv_array set shared_array { key1 value1 key2 value2 }
   
   % nsv_array get shared_array
   key1 value1 key2 value2
   % nsv_array reset shared_array { key3 value3 }
   % nsv_array exists shared_array
   1
   % nsv_array size shared_array
   1
   % nsv_array names shared_array
   key3

Working with tcl arrays

   % nsv_array set shared_array [array get tmp_shared_array]
   % array set tmp_shared_array [nsv_array get shared_array]
   % nsv_array reset shared_array [array get tmp_shared_array]

SEE ALSO

Thread-shared Variables

-