Tcl Library Source Code

View Ticket
Login
2026-11-16
00:06 • Ticket [2426988fff] linking to array variable problem status still Open with 3 other changes artifact: 0921c0b9b5 user: serhiy.storchaka
2026-11-15
23:36
Fix [2426988fff]: an array linked to a struct::matrix kept stale elements after deleting rows or columns or transposing. Pass unsets on to the linked array. leaf check-in: 09d3df39b0 user: serhiy.storchaka tags: matrix-link-stale-elements
2008-12-16
00:26 • Ticket [2426988fff] linking to array variable problem status still Open with 4 other changes artifact: ec7dee9336 user: andreas_kupries
2008-12-14
11:53 • New ticket [2426988fff]. artifact: 0e58120cd0 user: nobody

Ticket UUID: 2426988
Title: linking to array variable problem
Type: Bug Version: None
Submitter: nobody Created on: 2008-12-14 11:53:12
Subsystem: struct :: matrix Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2026-11-16 00:06:14
Resolution: None Closed By:
    Closed on:
Description:
version: 2.0.1 . 
Platform windows. 
ActiveTcl distribution .
linking to array variable issue.

 Any delete of row of matrix is not reflected in the linked array variable.

I am using this function in the context of updating Tktable. So it is a big problem

Regards
valli
[email protected]
User Comments: serhiy.storchaka added on 2026-11-16 00:06:14:

Proposed fix in branch matrix-link-stale-elements: the matrix data is now traced for unsets too, so cells removed by delete row/column or transpose are also removed from the linked arrays. Tests matrix-9.15 and matrix-9.16.


andreas_kupries added on 2008-12-16 00:26:03:
Hello valli, thank you for your report.

Is it possible for you to attach a snippet of Tcl code which demonstrates the problem ?
Right now I am not fully clear on what you are doing, making it it difficult to reproduce what you are seeing.