Tcl Source Code

View Ticket
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.
Ticket UUID: 981841
Title: TIP #207: Add a -namespace Option to [interp invokehidden]
Type: Support Version: None
Submitter: mistachkin Created on: 2004-06-29 09:34:28
Subsystem: None Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-07-29 19:57:03
Resolution: Closed By: dgp
    Closed on: 2004-08-02 20:55:34
Description:
This patch implements a "-namespace" option for [interp 
invokehidden].  A simple test script is provided.  A TIP 
will be forthcoming.

Please review and test this patch.  Any feedback is 
appreciated.
User Comments: dkf added on 2009-07-29 19:57:03:

IP - Comment Removed: 130.88.1.31

dkf added on 2009-07-29 19:56:19:

IP - Comment Removed: 130.88.1.31

dkf added on 2008-11-21 21:27:18:

data_type - 210894

dgp added on 2004-08-03 03:55:34:
Logged In: YES 
user_id=80530

Applied tip207.patch to HEAD.

dgp added on 2004-08-03 03:40:02:

File Added - 96115: tip207.patch

Logged In: YES 
user_id=80530

tip207.patch is an alternative
implementation, including a test.

dgp added on 2004-07-28 22:07:24:

File Added - 95541: 981841.patch

Logged In: YES 
user_id=80530


Here's the patch as a single
unidiff file, updated to the current
HEAD.

Would be nice to route all
command invocation through
TclEvalObjvInternal(), but it
seems all the "hidden command"
machinery is in the Tcl*Invoke* routines,
so that refactoring should be done
separately.

It's not clear to me why the new
internal routine TclObjInvokeNamespace()
needs to be in the internal stubs table,
nor why it needs the unused flag values
TCL_INVOKE_NO_GLOBAL_ONLY
and TCL_INVOKE_NS_MUST_EXIST.

Does the author have other uses for
this routine in mind beyond the proposals
of TIP 207?

mistachkin added on 2004-07-01 14:40:42:

File Added - 92505: ihn4.zip

mistachkin added on 2004-07-01 14:39:38:

File Deleted - 92260:

mistachkin added on 2004-06-29 16:34:28:

File Added - 92260: invokehidden_ns.zip

Attachments: