You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by "David N. Welton" <da...@dedasys.com> on 2003/09/29 15:45:16 UTC

Re: Question about var proc

Andy Doerr <an...@swbell.net> writes:

> How hard would it be to allow a user to modify var values during
> execution of the request script?

> such as this generalization:
> ##############################
> var set foo bar

You just want a 'var set'?  Hrm.  Might be possible, but it doesn't
strike me as a good idea.  What do you need it for?  You can have a
default value like so:

set foo [var get foo "bar"]

and that way you will always have something in the Tcl variable foo.
Or you can check if it exists and if not set foo accordingly.  Maybe
you've thought of something I haven't though:-)

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org