From: SourceForge.net <no...@so...> - 2011-08-29 10:46:02
|
Bugs item #3399564, was opened at 2011-08-28 04:01 Message generated for change (Comment added) made by msofer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3399564&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 45. Parsing and Eval Group: development: 8.6b2 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Joe Mistachkin (mistachkin) Assigned to: miguel sofer (msofer) Summary: Cannot invoke cmdInfo.objProc for NRE-enabled commands Initial Comment: It seems that attempting to use Tcl_GetCommandInfo and then calling the cmdInfo.objProc for NRE-enabled commands does not really work. No error is generated; however, it appears that the command is not executed. The code in question is here (on the Fossil tcl-integration branch): http://www.fossil-scm.org/index.html/artifact?ci=tip&filename=src/th_tcl.c&ln=148-160 ---------------------------------------------------------------------- >Comment By: miguel sofer (msofer) Date: 2011-08-29 07:46 Message: Good catch: [eval]'s objProc was actually an nreProc. Fixed in trunk. ---------------------------------------------------------------------- Comment By: Joe Mistachkin (mistachkin) Date: 2011-08-29 05:32 Message: I think I have figured out the problem. The Tcl_EvalObjCmd function calls TclNREvalObjEx; however, TclNRRunCallbacks is never called when Tcl_EvalObjCmd is invoked via the objProc. ---------------------------------------------------------------------- Comment By: Joe Mistachkin (mistachkin) Date: 2011-08-28 20:43 Message: In order for the link to work, I believe you have to at least login as anonymous. ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2011-08-28 12:19 Message: Can you please provide some evidence/hints as to "appears that the command is not executed", and how NRE-enabled commands enter into the picture? Note that PURE nre-commands (those that only have an nreProc but no objProc) will bomb (objProc==NULL). These are coroutine, tailcall, yield and also any command created by [coroutine]. For all others commands, things should work properly irrespective of their being NRE-enabled or not. ---------------------------------------------------------------------- Comment By: miguel sofer (msofer) Date: 2011-08-28 11:31 Message: That link doesn't work, found instead https://www.fossil-scm.org/index.html/artifact/9077c7d0f2347a47b5fe30242532fbaf1d63ab77 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3399564&group_id=10894 |