Sujet : Re: where is the TCL "macro" command ?
De : aotto1968 (at) *nospam* t-online.de (aotto1968)
Groupes : comp.lang.tclDate : 29. Jun 2024, 07:05:49
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5o87t$3ppap$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
Sometimes tcl feels like the UDSSR "lada" car
→ everything is perfect and nothing have to be changed.
I already mentioned that tcl needs a "pragma" to activate a incompatible extension on a
per script basis
example:
pragma add args-everywhere
On 28.06.24 20:58, Christian Gollwitzer wrote:
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