Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2015-10-09
12:58 • Closed ticket [623061ffff]: enhancement: turn off Octal plus 9 other changes artifact: 6a3f148f23 user: jan.nijtmans
2003-02-23
00:26 • Ticket [623061ffff]: 1 change artifact: d23940d1e9 user: dkf
2002-10-14
22:19 • Ticket [623061ffff]: 6 changes artifact: fbf4d37c23 user: dkf
14:55 • New ticket [623061ffff]. artifact: 28b1146844 user: pedietz

enhancement: turn off Octal

Closed / Accepted623061ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 11 years ago
Descriptionplain2002-10-14 14:55:40
There is such an out cry for "why did 08 blow up my 
application" on comp.lang.tcl.* -- that I will post this 
recommendation again.

we need to create a method to help these people out....

TCL already has a handful of special environment 
variables / global variables that control the behaviour of 
TCL  (floating point precision, debug level,  etc.)

Why can't we add an environment variable to control 
if "leading zero Octal" is used or not ?  This can be set 
to true as the default so its backwards comaptible...

then companies like mine can:
  set tcl_use_octal 0 

in one of the TCL init libraries so all our users / 
programs are covered.


Or you can hide the environment variable by offering a 
new command like octal people can call:
    octal none
or a more generic tclfeatures command:
    tclfeatures nooctal

Or pass a flag to expr:
  set y [expr -nooctal  $month + 1]
(though this would not catch everthing like the other 
methods).
dkfplain2002-10-14 22:19:58
Logged In: YES 
user_id=79902

This feature requires a TIP.
dkf Ticket [623061ffff]: 1 change [History diff]2003-02-23 00:26:16
jan.nijtmanswiki2015-10-09 12:58:09

Since we have TIP #114 and the implementation is done, we can close this RFE: there is no reason to keep track on the status in two locations.

Implementation can be found already in the "novem" branch. TIP will be accepted with very high probability by the TCT.

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