TIP #214 Version 1.3: Add New Object Introspection Command

This is not necessarily the current version of this TIP.


TIP:214
Title:Add New Object Introspection Command
Version:$Revision: 1.3 $
Authors: Ulrich Schöbel <usus at aladyn dot de>
Larry W. Virden <lvirden at yahoo dot com>
State:Draft
Type:Project
Tcl-Version:8.5
Vote:Pending
Created:Tuesday, 24 August 2004
Obsoletes:TIP #117
Keywords:Tcl, info, representation

Abstract

This TIP proposes the new representation subcommand to info' which returns the internal representation of a variable's contents.

Rationale

Inspired by a posting on news:comp.lang.tcl by Victor Wagner, I considered a facility to obtain the internal representation of the value of a variable to be useful.

Proposed Change

Add the new subcommand info representation with the following syntax:

info representation varName

It returns the type of the variable varName or an error, if

Implementation

A patch against Tcl8.4.6 is available [1].

Copyright

This document has been placed in the public domain.


Powered by TclThis is not necessarily the current version of this TIP.

TIP AutoGenerator - written by Donal K. Fellows