Skip to content
Tcl Source Code View Ticket
Login

View Ticket

disable interp->result access support

Closed / Accepted1175180fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 18 years ago
Descriptionplain2005-04-02 02:57:08
Attached patch disables all code
that supports the legacy
interp->result field.

To restore it, compile with
USE_DIRECT_INTERP_RESULT_ACCESS
defined.
dgpplain2005-04-02 09:57:08
File Added - 128169: result.patch
dgpplain2005-04-05 00:26:08
Logged In: YES 
user_id=80530


Patch updated to include headers
and tests.  (Thanks jenglish!)
dgpplain2005-04-05 00:26:10
File Deleted - 128169: 



File Added - 128446: 1175180.patch
dgpplain2005-04-05 00:53:30
File Added - 128450: remove.patch

Logged In: YES 
user_id=80530


Second patch goes beyond
disabling to completely
removing support for
interp->result access.
hobbsplain2005-04-05 03:01:04
Logged In: YES 
user_id=72656

Without looking at the patch, I assume that this was done
without changing the size of the Tcl_Interp structure, which
would cause ABI issues.
dgpplain2005-04-05 03:03:18
Logged In: YES 
user_id=80530


correct.  no fields are removed by the patch.
(though public access to them is).
dgp Ticket [1175180fff]: 1 change [History diff]2005-04-06 05:01:35
dkfplain2005-04-06 07:25:23
Logged In: YES 
user_id=79902

I worry about old (broken) code that accesses that field
directly.
OK, it's broken, but I don't want to be the one explaining
that to users who find that their code no longer compiles
because of poorly written code that happens to not be
called. (That's quite possible with error handling code).

OTOH, I was planning to do this (or rather a total purge)
very early in the 9.0 cycle.
dgpplain2005-04-06 21:31:20
Logged In: YES 
user_id=80530


changed your tune a little bit since
you wrote the comment at lines 632-639
of tclResult.c, then?  :D
dkfplain2005-04-12 03:43:14
Logged In: YES 
user_id=79902

"Consistency is the sign of a small mind"
:-p
dgp Ticket [1175180fff]: 2 changes [History diff]2008-09-30 01:31:16
kennykb Closed ticket [1175180fff]. [History diff]2008-11-27 02:21:54
Log in (anonymous is fine) to add a comment.

Attachments: