Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

TIP #214: Add New Object Introspection Command
TIP #214: ADD NEW OBJECT INTROSPECTION COMMAND
 ========================================
========
Version:      $Revision: 1.1 $
Author:       <usus_at_aladyn.de>
State:        Draft
Type:         Project
Tcl-Version:  8.5
Vote:         Pending
Created:      Tuesday, 24 August 2004
URL:          http://purl.org/tcl/tip/214.html
WebEdit:      http://purl.org/tcl/tip/edit/214
Post-History:

-------------------------------------------------------------------------

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 <URL:news:comp.lang.tcl> by Victor Wagner, I
considered a facility to obtain the internal representation of a the
value in variable to be useful.

* It further completes the Tcl introspection commands.

* It offers a method to check the type of a variable without
conversion.

* During the development process it is useful to detect/avoid
shimmering and its negative performance effects.

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

* /varName/ doesn't exist,

* /varName/ is an array and no index is provided,

* /varName/ is a scalar variable but an index is provided.

IMPLEMENTATION
================

A patch against Tcl8.4.6 is available
[<URL:http://sf.net/tracker/?func=detail&...p/tcl_announce/
Send administrivia to tcl-announce-request@mitchell.org
Tcl/Tk at http://tcl.tk/ ]]


Report this thread to moderator Post Follow-up to this message
Old Post

09-01-04 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:03 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.