Re: WHILE and IF



In article <1137277182.227538.314190@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
suchenwi <richard.suchenwirth-bauersachs@xxxxxxxxxxx> wrote:
>> if ([string compare $line $header] == 0) continue
>Won't work. Parens in Tcl are not special, except for array indexing.
>The condition for [if] is typically put in braces:
> if {[string compare $line $header] == 0} continue
>But using [string compare] is a bit old-fashioned too, nowadays we'd
>just use the "eq" operator and write
> if {$line eq $header} continue

Hmm..

When did eq get added, and is there some documentation that explains the
differences (I assume there are some) between:

if { $line eq $header }
and
if { $line == $header }

?

Thanks,
Mattias
.



Relevant Pages

  • Re: [BUG] SLOBs krealloc() seems bust
    ... The second -1 subtracts out the size of the header. ... This space is not necessarily 1 slob unit: ... Hmm, ksize arguably could be used to find the underlying ...
    (Linux-Kernel)
  • Re: detect internet speed with php
    ... flush() is supposed to flush the ... > what if you were to send a header with a timestamp: ... send a lot of header data: ... > hmm, then I think we would have a size of data sent, and time to send? ...
    (comp.lang.php)
  • Re: Dealing with Word special characters
    ... Hmm... ... That sounded promising, but then I found this comment in the header: ... and outputs text or html files. ...
    (comp.lang.php)
  • Re: compiling an app under Linux, looking for library files and headers
    ... Now I'm trying to compile a source package which uses Tcl/Tk: ... Tcl header... ... Tcl library... ...
    (comp.lang.tcl)
  • Re: Is RMH Healthy?
    ... Microsoft page thattallies this is no longer functioning effective ... Hmm, I'm the only one in the top 40 that hasn't changed my header this ...
    (rec.motorcycles.harley)