Sujet : Re: where is the TCL "macro" command ?
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tclDate : 28. Jun 2024, 17:18:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5mno6$3dht6$2@dont-email.me>
References : 1
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
aotto1968 <
aotto1968@t-online.de> wrote:
the "macro" command evaluate the code IN the Frame of the calling "proc"
arguments and "local" declared variables are local, all other variables
are always in the frame of the calling "proc"
Tcl (standard Tcl) has no "macro" capability such as you would
typically find with a LISP.
You may be looking for the "sugar" package:
https://wiki.tcl-lang.org/page/SugarWhich is a Tcl extension to add some amount of LISP like "macro"
capability to Tcl.