TIP #440: Add engine to tcl_platform Array


TIP:440
Title:Add engine to tcl_platform Array
Version:$Revision: 1.13 $
Authors: Joe Mistachkin <joe at mistachkin dot com>
Jan Nijtmans <jan dot nijtmans at gmail dot com>
State:Final
Type:Project
Tcl-Version:8.5
Vote:Done
Created:Thursday, 14 January 2016
Keywords:language implementation, platform

Abstract

This TIP proposes a mechanism for determining the implementation of the Tcl language currently in use.

Rationale

There is more than one implementation of the Tcl language (see [1]). These implementations differ greatly in their degree of compatibility and completeness. At the script level, there is currently no standard way to determine which implementation of the Tcl language is being used.

Specification

The engine element will be added to the tcl_platform array. Its value will be set to "Tcl".

Reference Implementation

A reference implementation of this TIP is available [2].

The TH1, Jim, Picol, JTcl, and Eagle implementations of the Tcl language already implement this feature, each using the name of the project as the value of the tcl_platform(engine) element.

Copyright

This document has been placed in the public domain.


Powered by Tcl[Index] [History] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]

TIP AutoGenerator - written by Donal K. Fellows