|
2000-10-26
| ||
| 08:29 | • Closed ticket [218778ffff]: Imported commands are not compiled plus 4 other ... artifact: 2bf21a6d9b user: welch | |
| 01:05 | • New ticket [218778ffff]. artifact: 372a80a0cb user: nobody | |
Imported commands are not compiled
Closed / Fixed218778ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:15
OriginalBugID: 2100 Bug
Version: 8.1
SubmitDate: '1999-05-19'
LastModified: '2000-01-12'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: All
FixedDate: '2000-01-12'
FixedInVersion: 8.3b2
ClosedDate: '2000-10-25'
ReproducibleScript:
If you import a compiled command into a namespace and then use the
imported
command then it does not get compiled. This happens because importing
creates a new command which does not have the compileProc field set up.
Patch:
*** /afs/hur/u/pduffin/tools/tcl/tcl8.1/generic/tclNamesp.c~Thu Apr 29 02:11:46 1999
--- /afs/hur/u/pduffin/tools/tcl/tcl8.1/generic/tclNamesp.cWed May 5 11:59:21 1999
***************
*** 1263,1268 ****
--- 1263,1269 ----
(ClientData) dataPtr, DeleteImportedCmd);
dataPtr->realCmdPtr = cmdPtr;
dataPtr->selfPtr = (Command *) importedCmd;
+ dataPtr->selfPtr->compileProc = cmdPtr->compileProc;
/*
* Create an ImportRef structure describing this new import
PatchFiles:
tclNamesp.c
Comments:
This problem appeared when I tried to write a compiled command for my
Feather
extension and applying the fix has fixed the problem and has not had any
other noticeable effect.
Does this corrrectly propagate when you rename
-- 12/01/1999 hobbs
Passes all tests suites, seems OK. It's been included for 8.3b2.
-- 01/12/2000 hobbs
welch Closed ticket [218778ffff].
[History diff]2000-10-26 08:29:14
Log in (anonymous is fine) to add a comment.