TIP 659: Allow other default profiles than "strict"

EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA
Author:         Jan Nijtmans <[email protected]>
State:          Withdrawn
Type:           Project
Vote:           Pending
Tcl-Version:    9.0
Tcl-Branch:     tip-659


This TIP proposes a new interp profile command, and a new environment variable TCL_PROFILE_DEFAULT, which allows the default profile to be different from "strict". This only makes sense in combination with TIP #657.


The idea is that every interpreter has a default profile. It is set at creation time, using the environment variable TCL_PROFILE_DEFAULT. If this environment variable has the value tcl8 or replace, the default profile of the interpreter will be as specified. If the environment variable is missing, or has any other value, then the default profile will be strict

Also there will be a new command interp profile which can set and get the current default profile of the interpreter. e.g:

% interp profile
% interp profile tcl8
% interp profile


Implementation is available in the tip-659 branch of the Tcl repository.


This is 100% upwards compatible. As long as the environment variable is not set, everything is as before.


This document has been placed in the public domain.