Tcl Source Code

View Ticket
Login
Ticket UUID: 2502037
Title: NRE-enable [namespace unknown] dispatch
Type: Bug Created on: 2009-01-12 18:12:11
Submitter: dgp Assigned to: dgp
Subsystem: 45. Parsing and Eval Severity:
Priority: 5 Medium Last modified: 2009-03-22 21:47:27
Status: Open Closed by:
Resolution: Fixed Closed on:
Version: obsolete: 8.6b1
Description:
Appears that when [namespace unknown]
handler dispatch is called upon to
deal with evaluation of a command that
cannot be resolved, a recursive call
to Tcl_EvalObjv() is the mechanism, which
I believe interrupts the trampoline.

Add this to the list of cases where NRE
is not yet active.
User Comments:
dgp added on 2009-01-14 03:48:13:
In particular, I think this
will need to be addressed before
auto-loaded coroutines function
properly.

dkf added on 2009-01-14 06:33:33:
Initial review indicates that it should be possible to fix; all the code that needs to change is in tclBasic.c, and is in TclNREvalObjv and TEOV_NotFound (which is only called from TclNREvalObjv) and the pattern of usage in the outer function is (effectively) to just return the result of the inner *and* the outer is already in an NRE context, (i.e. using TclNRAddCallback for its primary effect...)

msofer added on 2009-03-22 21:47:27:
This should be fixed in HEAD. Don: got a test for this?