On Fri, 14 Jan 2000, John N S Gill wrote:

> I don't think it is true to say that eval doesn't do anything with one 
> arguement.  Eg
> 
> % proc x {args} {   
> puts $args
> puts [llength $args]
> }
> %  x {a b c}
> {a b c}
> 1
> % eval x {a b c}
> a b c
> 3

Ha! Look again! you gave eval 2 args (x and the list), not one!

Also, proc x {args} is a very special case of "args". Try your test with
proc x {var} and the eval test will fail. When the last arg of a proc is
"args", it _combines_ all remaining args into a list. Hmm, this is the
opposite of your original question about magic splitting. Magic
_combining_ does exist!

...RickM...

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to