Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-08-02
20:08 • Closed ticket [1015338fff]: TIP#214: Add representation subcommand to info p... artifact: 68e182f2b8 user: dkf
20:08 • Ticket [1015338fff]: 4 changes artifact: 03ffc7c2bb user: dkf
20:05 • Ticket [1015338fff]: 4 changes artifact: 52a934acbb user: dkf
2004-08-25
22:20 • Ticket [1015338fff]: 1 change artifact: bfb8bd072b user: dkf
17:15 • Ticket [1015338fff]: 4 changes artifact: 59a6dc1109 user: nobody
05:17 • Ticket [1015338fff]: 4 changes artifact: eb3e13208c user: coldstore
01:50 • Ticket [1015338fff]: 4 changes artifact: 738d3fabf5 user: nobody
2004-08-24
22:29 • Ticket [1015338fff]: 4 changes artifact: ec96c62331 user: dkf
22:24 • Ticket [1015338fff]: 4 changes artifact: 475b93d558 user: nobody
22:24 • Add attachment x to ticket [1015338fff] artifact: 75f5dbb8cf user: nobody
15:24 • New ticket [1015338fff] Add representation subcommand to info. artifact: eef20739f3 user: nobody

TIP#214: Add representation subcommand to info

Closed / Accepted1015338fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 17 years ago
Descriptionplain2004-08-24 15:24:34
Add a new introspection command to obtain the internal
representation of a variable.
nobodyplain2004-08-24 22:24:35
File Added - 98978: x
dkfplain2004-08-24 22:29:54
Logged In: YES 
user_id=79902

Looks like TIP#117 to me, which was withdrawn on the grounds
that it would be more used than abused.
nobodyplain2004-08-25 01:50:34
Logged In: NO 

Donal, you're right, it's very similar to TIP#117. I didn't
see that TIP.
Nevertheless, I don't understand the reason for its withdrawal.
coldstoreplain2004-08-25 05:17:04
Logged In: YES 
user_id=19214

If the desire for this information is to optimise code by
detecting shimmering, then it would suffice to create a
well-known extension which provides it.

Perhaps I'll throw a simple critcl thing up on the wiki.
nobodyplain2004-08-25 17:15:47
Logged In: NO 

Detecting shimmering is certainly the most important usage.
Tcl is famous for its rich introspection features. I believe
that,
if there's a simple means to complete these features further,
it should be done. The internal representation is just one of
them.
dkf Ticket [1015338fff]: 1 change [History diff]2004-08-25 22:20:40
dkfplain2009-08-02 20:05:22
IP - Comment Removed: 77.97.136.76
dkfplain2009-08-02 20:08:36
I've added [tcl::unsupported::representation] (takes a single argument) which reports the representation of an object. It's deliberately made awkward to use as a condition test (don't do that!) and it's unsupported, but does let you probe what is going on.

Given that it's unsupported (and any attempt to support it is going to be really resisted) I'll close out the TIP as Withdrawn.
dkfplain2009-08-02 20:08:38
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: