Tcl Source Code

View Ticket
Login
Ticket UUID: 1602991
Title: incr float doesn't error
Type: Bug Created on: 2006-11-26 03:17:46
Submitter: wjc Assigned to: dgp
Subsystem: 47. Bytecode Compiler Severity:
Priority: 8 Last modified: 2006-11-27 22:10:33
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2006-11-27 15:10:33
Version: obsolete: 8.5a5
Description:
% 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.
User Comments:
dgp added on 2006-11-27 22:10:33:
Logged In: YES 
user_id=80530
Originator: NO


Thanks.  Silly 
copy/paste/forget to modify
bug in TclIncrObj().