2014-04-03 15:14 GMT+02:00 Stephan Beal <sgb...@googlemail.com>:
> Weird - i've never seen octals written that way, but i trust Jan's judgement
> implicitly regarding issued of "TCL-ness."

See: <http://en.wikipedia.org/wiki/Octal>

> Newer languages have been abandoning the prefix 0, as decimal numbers
> are often represented with leading zeroes. The prefix q was introduced to
> avoid the prefix o being mistaken for a zero, while the prefix 0o was 
> introduced
> to avoid starting a numerical literal with an alphabetic character (like o or 
> q),
> since these might cause the literal to be confused with a variable name. The
> prefix 0o also follows the model set by the prefix 0x used for hexadecimal
> literals in the C language; it is supported by Haskell,[10] OCaml,[11] Perl 6,
> [12] Python as of version 3.0,[13] Ruby,[14] Tcl as of version 9,[15] and it 
> is
> intended to be supported by ECMAScript 6[16] (the prefix 0 has been
> discouraged in ECMAScript 3 and dropped in ECMAScript 5[17]).

Actually, Tcl 8.5 was the first Tcl version which understands the "0o"
prefix, but since Tcl 8.4 is still in use somewhere availability is not
guaranteed in all Tcl environments. That's my explanation why
it isn't used very much.

Regards,
        Jan Nijtmans
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to