Bug 2034 – Change "TypeInfo keyti" passed into associative array runtime code to "TypeInfo_AssociativeArray ti" so info for both key and value is available

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
PowerPC
OS
All
Creation time
2008-04-25T12:10:51Z
Last change time
2019-10-10T14:11:39Z
Assigned to
No Owner
Creator
Sean Kelly

Comments

Comment #0 by sean — 2008-04-25T12:10:51Z
GC type awareness for associative arrays in D is currently a bit weak because only the type of the key is typically available. This is really only an issue for the 'values' properties right now, but other AA implementations may be able to take advantage of type awareness for GC purposes. It would be nice if the TypeInfo for the AA itself could be passed into the runtime routines instead of the TypeInfo for just the key.
Comment #1 by razvan.nitu1305 — 2019-10-10T14:11:39Z
D2 does not exhibit this issue.