"David N. Welton" wrote:

> If you know that a variable could be a list, you check LVARS(name),
> and if it exists, then you can be sure that VARS(name) is a list, and
> not a string beginning with {.
>
> Does that sound fair?  That was your original suggestion as I
> understood it the other day, it is easy to implement, and it isn't
> *too* awfully wierd.
>
> 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.
>

Both choices are OK for me.

--
Valerio Gionco   [[EMAIL PROTECTED]]
MOST s.r.l.      Via Bezzecca, 9 - 10131 Torino
************************************************************************
            "Life's not fair, but the root password helps."




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

Reply via email to