Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-28
11:26 • Closed ticket [1055712fff]: bogus complaint regarding resolved '!false' ... artifact: 1ff5a93d07 user: dgp
2004-10-27
23:02 • New ticket [1055712fff]. artifact: 06ed25bf9a user: nobody

bogus complaint regarding resolved '!false' usage in "if"

Closed / Out of Date1055712fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-27 23:02:05
tcl 8.3.5
redhat enterprise 3.0

example:

set found false

if {!$found} {
    puts "eval'd true"
}

Expecting "puts" to occur, but get following error:

can't use non-numeric string as operand of "!"

This example works fine on same platform, backed down 
to TCL 8.3.3.
dgpplain2004-10-28 11:26:47
Logged In: YES 
user_id=80530

Works for me in the current
release, Tcl 8.4.7.

% info patch
8.4.7
% set found false
false
% if {!$found} {puts true}
true

For that matter, Works For Me
using Tcl 8.3.5 also:

% info patch
8.3.5
% set found false
false
% if {!$found} {puts true}
true

If you see the error only in a
modified Tcl distributed by RedHat,
you'll have to take that up with them.
The original sources work, and the
current release works.

If you're seeing this error only
in a Tcl interpreter you compiled
from source code yourself, it's
possible that you're seeing the
effects of a compiler bug.  If you're
in that category, follow up and
tell us what compiler you used.
Otherwise, this report will close.
Log in (anonymous is fine) to add a comment.