Thanks Rick and Ken for your offerings on splitting lists.

I now understand why eval has to be used.  I had been living in hope 
that there was some command that would take a list as an argument and 
return the list split out into arguments.   I've now put my brain 
into gear: a TCL command always returns a list, there is no way a 
command can be used to split a list into separate arguments.

If I understand correctly the eval command works as follows:
    1. takes its arguments and uses the same algorithm as concat
       to build a command.
    2. passes that command to the TCL interpreter.

I suppose eval does one other thing between 1 & 2.  It takes the list 
that results from the concat command and splits it into separate 
arguments to pass to the interpreter.  Because the eval command is 
done in C code it is able to do this magic.

---------------------------------------------------------------------------
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