Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-06-29
16:43 • Ticket [981733ffff] ::safe::interpCreate fails if "temp" is an array</... artifact: 2137fa060e user: dkf
10:53 • Closed ticket [981733ffff]. artifact: 7aac815052 user: mistachkin
03:46 • New ticket [981733ffff]. artifact: a487ff7ba3 user: barkerjr

::safe::interpCreate fails if "temp" is an array

Closed / Fixed981733ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-06-29 03:46:20
Linux sco 2.4.21-226-default #1 Tue Jun 15 10:44:28 UTC
2004 i686 i686 i386 GNU/Linux

If a variable array name "temp" already exists in the
global namespace, creation of the safe interp fails.

% set temp(0) "testing"
testing
% ::safe::interpCreate "MyNewInt"
can't set "temp": variable is array
mistachkinplain2004-06-29 10:53:20
Logged In: YES 
user_id=113501


Duplicate of bug #981735
dkfplain2004-06-29 16:43:35
Logged In: YES 
user_id=79902

(Joe, please close *newer* bugs as dups, not older ones!)

Fixed in HEAD and 8.4 branch.  It was due to the horrible
horrible horrible variable name resolver crap.  Adding
[variable temp] at the top of the namespace stops the problem.
Log in (anonymous is fine) to add a comment.