Skip to content
Tcl Source Code View Ticket
Login

View Ticket

NRE-enable [namespace unknown] dispatch

Open2502037fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-01-12 18:12:11
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.
dgpplain2009-01-14 03:48:13
In particular, I think this
will need to be addressed before
auto-loaded coroutines function
properly.
dkfplain2009-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...)
msoferplain2009-03-22 21:47:27
This should be fixed in HEAD. Don: got a test for this?
Log in (anonymous is fine) to add a comment.