Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-09-03
03:08 • Closed ticket [583445ffff]: memory cmd not found in slave interps plus 7 oth... artifact: a9d1886721 user: hobbs
2002-07-23
01:07 • Ticket [583445ffff]: 2 changes artifact: 01b351fe5d user: hobbs
2002-07-18
17:29 • New ticket [583445ffff]. artifact: 814c34f816 user: hemanglavana

memory cmd not found in slave interps

Closed / Fixed583445ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-18 17:29:02
When I compile tcl with TCL_MEM_DEBUG flag, the memory command
is only available in the main interpreter:

godel:109> tclsh
% info patch
8.3.4
% info command memory
memory
% interp create i
i
% i eval {info command memory}
% i alias memory memory
memory
% i eval {info command memory}
memory
% exit
godel:110> 

The Tcl_InitMemory function, which creates these commands in the
interpreter, is called in the Tcl_Main function right after calling
Tcl_CreateInterp. I suggest that the Tcl_InitMemory function be called
from within Tcl_CreateInterp itself. This will not only solve the above
problem for slave interps, but will also be useful in debugging C
extensions that call Tcl_CreateInterp function.
hobbs Ticket [583445ffff]: 2 changes [History diff]2002-07-23 01:07:00
hobbsplain2002-09-03 03:08:26
Logged In: YES 
user_id=72656

corrected for 8.4.0.
Log in (anonymous is fine) to add a comment.