TIP 214: Add New Object Introspection Command

Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2017 Conference, Houston/TX, US, Oct 16-20
Send your abstracts to tclconference@googlegroups.com
by Aug 21.
Author:         Ulrich Schöbel <usus@aladyn.de>
Author:         Larry W. Virden <lvirden@yahoo.com>
State:          Withdrawn
Type:           Project
Vote:           Pending
Created:        24-Aug-2004
Post-History:   
Keywords:       Tcl,info,representation
Tcl-Version:    8.7
Obsoletes:	117

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 http://sf.net/support/tracker.php?aid=1015338 .

Copyright

This document has been placed in the public domain.

History