O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Proposed Tcl Changes

Octal Numbers

Invalid octal numbers (e.g., 08) have long been cause for confusion. At the least, the error message will be improved to alert users that a leading zero implies an octal number, which cannot contain digits eight or nine. We plan to introduce a tcl command that turns off octal number interpretation:

tcl useoctal boolean
						

At the same time, a new way to specify octal numbers will be added, probably \0oXXX.

We are considering a new way to specify decimal numbers, probably \0dXXX, that will force interpretation of XXX as decimal, even if it has leading zeros.

file channels

The file channels command will return a list of open I/O channels, which can be sockets, regular files, or channels created by extensions. It ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required