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.