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 ...
Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.