Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2015-05-16
05:51 • Ticket [1670783fff] binary man page missing Inf/NaN ref status still Open wi... artifact: c3ee43e2b2 user: dkf
2015-05-09
01:48 • Ticket [1670783fff]: 5 changes artifact: 25d4311955 user: aspect
2009-05-04
18:34 • Open ticket [1670783fff]. artifact: fbe0a10160 user: lvirden
00:53 • Pending ticket [1670783fff]. artifact: 43032ff867 user: dkf
00:53 • Ticket [1670783fff]: 4 changes artifact: a49a09f53f user: dkf
2008-03-12
22:51 • Ticket [1670783fff]: 5 changes artifact: 28e132d9cc user: dgp
2007-10-31
23:51 • Ticket [1670783fff]: 1 change artifact: d8750b4d63 user: dgp
2007-02-28
12:31 • New ticket [1670783fff]. artifact: f4197c9573 user: lvirden

binary man page missing Inf/NaN ref

Open1670783fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 12 years ago
Descriptionplain2007-02-28 12:31:45
The man page for binary should mention that NaN and Inf (and any other substituted values, even if they are being substituted correctly and by the OS), so that the developer is aware of the potential of the data .
dgp Ticket [1670783fff]: 1 change [History diff]2007-10-31 23:51:44
dgpplain2008-03-12 22:51:06
Logged In: YES 
user_id=80530
Originator: NO


I confess I don't understand what
the problem is, so I don't know
how best to fix it.
dkfplain2009-05-04 00:53:08
Incomplete request?
dkf Pending ticket [1670783fff]. [History diff]2009-05-04 00:53:09
lvirdenplain2009-05-04 18:34:47
The suggestion was that for the Tcl binary.n man page, if it is discovered that some implementations replace input values with NaN, Inf, or some other string , a note should be added to the man page so a developer, trying to discover why their Tcl program is behaving in an unexpected manner, could see the potential issue.

I believe this was opened after a discussion occurred indicating that use of binary might result in Inf or NaN instead of the binary value expected.
aspectplain2015-05-09 01:48:47
I'm not aware of the original context of this ticket, but it may relate to [85ce4bf928], which showed that [binary format] will not store Inf.  The original discussion (if it can be unearthed) might be helpful to understand background for [85ce4bf928].
dkfwiki2015-05-16 05:51:19

I think it is our intention that Inf and NaN should just be handled correctly here, Bug [85ce4bf928] notwithstanding. If the bit-pattern specifies those values, they should be scanned correctly. If the arguments specify those values, they should be formatted correctly. (This is unlike the handling of NaN in expr.)

Log in (anonymous is fine) to add a comment.