Valerio Gionco <[EMAIL PROTECTED]> writes:

> > > The only other thing that seems acceptable is a command, but that is
> > > slower, and will require reworking of existing scripts.  And in any
> > > case, you still have to know when your variable might be a list:
> > >
> > > set lst [ vars get -list foo ]
> > >
> > > It is cleaner though, more flexible, and also extensible.
> >
> > I prefer that one.
> >
> > It only does any additional stuff when needed. While the first one seems a
> > bit weird to me... Besides, doing lsearch in VARSL may be a bit slow as
> > well.
> 
> Ok, we can go with this one.

Ok, a few things are left to hash out.

vars get -list has the troublesome problem that you might have a
variable called -list.

var -list get foo
var get foo

maybe we don't need the get?
var foo
var -list foo

This makes it pretty easy to check and see if objc is 3 or more.

Hrm... but how to get out the 'whole' list.

var -all

Means you could have a variable called -all...

Do we want to support multiple values?

var -list foo bar baz

-- 
David N. Welton
Free Software: http://people.debian.org/~davidw/
   Apache Tcl: http://tcl.apache.org/
     Personal: http://www.efn.org/~davidw/
         Work: http://www.innominate.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to