beetlebug▾
/

info tclversion

Gives the major and minor version of Tcl that ztcl follows.

info tclversion

Description

Gives the value of the global variable tcl_version: 9.1, or 8.6 with the flag --tcl 8.6. A script that unsets that variable makes the call an error.

Returns

A version, such as 9.1.

Examples

# Tcl 9.1 only
% info tclversion
9.1

# Tcl 8.6 only
% info tclversion
8.6

Errors

% info tclversion x
wrong # args: should be "info tclversion"
-errorcode TCL WRONGARGS

% unset ::tcl_version; info tclversion
can't read "tcl_version": no such variable
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also