Skip to content
Tcl Source Code Changes To Migrating scripts to Tcl 9
Login

Changes To Migrating scripts to Tcl 9

Changes to "Migrating scripts to Tcl 9" between 2023-11-14 18:41:26 and 2023-11-16 11:55:45

︙
165
166
167
168
169
170
171
172
173


174
175
176
177
178
179
180
165
166
167
168
169
170
171


172
173
174
175
176
177
178
179
180







-
-
+
+








## Removal of depreciated commands or arguments

These commands or arguments have been deprecated and have been removed from Tcl 9.
Scripts making use of these should be modified as below:

* Replace `case` with `switch`
* Replace `read -nonewline <chan>` with `read <chan> nonewline`
* Replace `read -nonewline <chan> <line>` with `puts <chan> <line> nonewline`
* Replace `read <chan> nonewline` with `read -nonewline <chan>`
* Replace `puts <chan> <line> nonewline` with `puts -nonewline <chan> <line>`

See [TIP 485](https://core.tcl-lang.org/tips/doc/trunk/tip/485.md)

### Deprecated `trace` subcommands `variable`, `vdelete`, `vinfo` have been removed

These commands have been deprecated since Tcl 8.4 and have been removed from Tcl 9.
Scripts making use of these should be modified as below:
︙