Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Need to document the behavior change in the Tcl 'C' compiled

Closed / Fixed218486ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:08
OriginalBugID: 694 Bug
Version: 8.0
SubmitDate: '1998-10-05'
LastModified: '1999-08-06'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 684
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-08-06'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


There is  a difference in behavior between tcl 7.6 and 8.0 with respect to string commands.  In 7.6 the argv array was always a copy of the command string.  In 8.0, the argv array contains pointers to shared strings in order to avoid paying the cost of a copy for every command invocation.  Unfortunately this means that commands that relied on being able to change the strings that were passed to the command will have undesirable side-effects on other parts of the system that happened to refer to be same string.
Need to update the 8.0 documentation for Tcl_CreateCommand to clarify this issue.



The 8.2 docs specify this condition. 
-- 08/06/1999 hobbs
welch Closed ticket [218486ffff]. [History diff]2000-10-26 08:23:17
dgp Ticket [218486ffff]: 3 changes [History diff]2001-04-05 06:46:35
Log in (anonymous is fine) to add a comment.