TIP 659: Allow other default profiles than "strict"

Login
Author:         Jan Nijtmans <[email protected]>
State:          Withdrawn
Type:           Project
Vote:           Pending
Tcl-Version:    9.0
Tcl-Branch:     tip-659

Abstract

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.

Rationale

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
strict
% interp profile tcl8
tcl8
% interp profile
tcl8

Implementation

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

Compatibility

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

Copyright

This document has been placed in the public domain.