Re: Syntax, expressiveness and the beauty of Tcl




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}

.



Relevant Pages

  • Re: ID field as logical address
    ... it is possible to issue an update that targets one or more prime ... relational assignment. ... information is lost when an update is coerced into being an assignment. ... components of each targeted tuple differ in the proposed relation and ...
    (comp.databases.theory)
  • Re: Newbie question about db normalization theory: redundant keys OK?
    ... at UPDATE in TTM (pps. 112-113), ... Information is lost. ... Assignment is still primitive because you haven't ...
    (comp.databases.theory)
  • Re: Newbie question about db normalization theory: redundant keys OK?
    ... at UPDATE in TTM (pps. 112-113), ... Information is lost. ... shown how an UPDATE can give a result that cannot be obtained by assignment. ...
    (comp.databases.theory)
  • Re: java help
    ... >who could write a simple program I need for an assignment. ... >I'm lost and I'm going to fail this class miserably ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.programmer)
  • overwriting an image matrix...is it possible?
    ... just want to ask if someone can help me overwrite an existing image ... i have a current assignment in which we are to ... i was able to do all the requirements, but am at lost at how to ... Prev by Date: ...
    (comp.soft-sys.matlab)