I think the nsv_* command directly mirrors the Tcl 'array' command. I.e. 'array names' is the equiv of 'nsv_names' and so on. I think it's rather neat that you can build a standard Tcl array and copy it directly into a nsv array. I do that with arrays that may take some time to generate so that I'm not tying up the nsv array that's being read by other threads.
/s. -+-+-+-+-+-+-+-+-+-+-+-+- If to err is human, I must be more human than most. Scott S. Goodwin u: http://scottg.net e: [EMAIL PROTECTED] p: 850.897.6830 aim: scottgnet ----- Original Message ----- From: "Dave Siktberg" <[EMAIL PROTECTED]> To: "AOLserver Discussion" <[EMAIL PROTECTED]> Sent: Saturday, January 05, 2002 7:07 PM Subject: RE: [AOLSERVER] Possible to get a list of defined keys of an nsv? > > Try 'nsv_array names' instead of 'nsv_names'. > > Thanks - that does it! > > I notice that the current nsv documentation has some omissions and mistakes. > Namely: > > 1) The list of commands at the top omits "nsv_names - returns names of > arrays matching a glob pattern". nsv_names * will return a list of all the > nsv arrays defined, for example. > 2) It might help to say that the nsv_array commands work on any defined nsv > entity, not just entities that have been loaded from tcl arrays -- though I > probably should have figured that out. :) > 3) There are fatal typos in the final paragraph of "Compatibility with Tcl > Arrays". These should be > nsv_array exists array_name > nsv_array size array_name > nsv_array names array_name > 4) It would also help to list the arguments for each of the nsv commands, I > think. > > I have not looked at the source code - perhaps there are other things to > add. > > AOLServer team - Can I help repair the above? If so, please let me know > how! > > Dave >
