|
From: Florent M. <flo...@gm...> - 2025-10-21 20:22:22
|
It's true
in tcl ParseVarName :
3. The $ sign is followed by something that isn't a letter, digit, or
* underscore: in this case, there is no variable name and the
token is
* just "$".
There is many possibilities finaly
for instance
% set x $/1+2
% set x $!1+2
are possible as well
Florent
Le 21/10/2025 à 21:24, Donald Porter a écrit :
> The {*} syntax introduced in Tcl 8.5 was a syntax for revising the determination of word boundaries. It needed to be connected to words.
>
> That is not what the current discussion seeks.
> The current discussion seeks to introduce syntax for a new form of substitution.
>
> The particular proposal for syntax $(…) suffers from the problem that it is already a working substitution syntax for the substitution of an element in an array variable with the empty name.
>
> Without thinking deeply and exhaustively about it, let me toss out the option of
>
> $=(…)
>
> This syntax does not currently perform a substitution. It is just literal text. Promoting it to a substitution syntax should be less disruptive.
>
> DGP
>
>
>
--
------------------------------------------------------------------------
*Florent MERLET*
/4 rue Johann Strauss
Logement 7
86180 BUXEROLLES/
------------------------------------------------------------------------
*Mél.* : /flo...@gm.../
*Tél.* : /06 70 00 63 48/
|