Hi,

I am using MSVC 9 with (Activestate) Tcl 8.5

Example 21 fails as follows -

  can't use non-numeric string as operand of "+"
      while executing
  "expr {$lzmax + 0.01}"
      (procedure "x21" line 167)
      invoked from within
  "x21"
      (file "./x21" line 18)


Printing $lzmax shows the value 1.#QNAN.

The problem is that for the above configuration a NAN has the value
1.#QNAN, which is not detected by proc isnan in examples/tcl/x21.tcl.

Rather than add a specific test for 1#QNAN I propose using the more generic tcl 
test 
        string is double $x 

Please find a patch attached.

Kind regards 

  
Terrence


      

Attachment: tclx21.patch
Description: Binary data

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to