Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-11-27
22:10 • Closed ticket [1602991fff]: incr float doesn't error plus 8 other change... artifact: 312989f3e1 user: dgp
2006-11-26
20:23 • Ticket [1602991fff]: 3 changes artifact: 3905e5f7ca user: dkf
03:17 • New ticket [1602991fff]. artifact: 9a8af52289 user: wjc

incr float doesn't error

Closed / Fixed1602991fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-11-26 03:17:46
% unset -nocomplain a ; incr a 1.5
168432184

I would expect this to generate the same warning as 8.4:
expected integer but got "1.5"

Man pages for 8.5a5 don't indicate a change in the float-related behavior here.

Discovered while testing tcl on parrot.
dkf Ticket [1602991fff]: 3 changes [History diff]2006-11-26 20:23:28
dgpplain2006-11-27 22:10:33
Logged In: YES 
user_id=80530
Originator: NO


Thanks.  Silly 
copy/paste/forget to modify
bug in TclIncrObj().
Log in (anonymous is fine) to add a comment.