Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-07-04
06:20 • Closed ticket [759935ffff]: TIP 111 changes to array not done. plus 7 othe... artifact: ddd324649f user: dkf
2003-06-25
03:18 • Ticket [759935ffff]: 5 changes artifact: d67adb06fc user: dkf
2003-06-24
16:56 • New ticket [759935ffff]. artifact: 43621fa4cf user: dgp

TIP 111 changes to [array] not done.

Closed / Fixed759935ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-06-24 16:56:36
TIP 111 is marked Final, but
the implementation is not done.

[array get] and [array set] should
now accept/return dict objects,
but they are still working with lists.
dkfplain2003-06-25 03:18:56
Logged In: YES 
user_id=79902

This is slightly awkward because the array implementation is
rather more primitive than I originally thought (uses string
keys, not object keys.)
dkfplain2003-07-04 06:20:47
Logged In: YES 
user_id=79902

Note that [array set] doesn't force its values to be dicts
because that would result in an observable change to trace
behaviour.  Consider:
   proc printargs args {puts TRACE:$args}
   set foo(bar) spong
   trace add variable foo write printargs
   array set foo {123 456 123 789}
Log in (anonymous is fine) to add a comment.