Getting the variable name of a Tcl_Obj
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> TCL Scripting
 
rtlm  -  Fri Oct 07, 2011 3:05 am Reply with quote
Hi all,
is it possible to get the variable name of a Tcl_Obj which is passed into a function via the 'objv[]' parameter?
I have a function in cpp with the standard "(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])" prototype, and I would like to get the name of the variable stored in 'objv[2]'.
This variable is a list object which I want to reset with another list I am creating, using the 'Tcl_SetVar2Ex()' function.
Any help would be greatly appreciated!

Cheers.
Johannes13  -  Mon Feb 27, 2012 6:31 am Reply with quote
Pass the variable name rather then the value.
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> TCL Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.