Re: Syntax, expressiveness and the beauty of Tcl
- From: "suchenwi" <richard.suchenwirth-bauersachs@xxxxxxxxxxx>
- Date: 30 Oct 2006 01:29:39 -0800
Stephan Kuhagen schrieb:
Now you can write:
: x = 10+10
or even
set result [: r=2+2]
I though assignment is optional, so:
set result [: 2+2]
would be a more interesting example. However, expressions specified
this way will be early evaluated by the Tcl parser. The speed advantage
of braced expressions (if they contain substitutions) gets lost. One
would better write
: x = {$y+$z}
.
- Follow-Ups:
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- References:
- Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Re: examine or describe a proc?
- Next by Date: Re: examine or describe a proc?
- Previous by thread: Syntax, expressiveness and the beauty of Tcl
- Next by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Index(es):
Relevant Pages
|