Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.