Sujet : Re: where is the TCL "macro" command ?
De : auriocus (at) *nospam* gmx.de (Christian Gollwitzer)
Groupes : comp.lang.tclDate : 28. Jun 2024, 19:58:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5n13s$3fdlt$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Am 28.06.24 um 09:23 schrieb Ralf Fassel:
* aotto1968 <aotto1968@t-online.de>
| should be
>
| proc block {args code} {
| ...
| }
>
| "args" always collect as much as possible arguments
| { args code } first set the defined "code" from the "end" and
| all remaining arguments got to "args"
Note that the TCL 'args' works differently: it is only 'magic' if it is
the *last* entry in the argument list.
Yes, but it would indeed be useful; hence TIP 288
https://core.tcl-lang.org/tips/doc/trunk/tip/288.md(unfortunately, rejected for 9.0)
Christian