[Issue 2034] New: Change "TypeInfo keyti" passed into associative array runtime code to "TypeInfo_AssociativeArray ti" so info for both key and value is available
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 25 10:10:55 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2034
Summary: Change "TypeInfo keyti" passed into associative array
runtime code to "TypeInfo_AssociativeArray ti" so info
for both key and value is available
Product: D
Version: 1.028
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: sean at invisibleduck.org
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.
--
More information about the Digitalmars-d-bugs
mailing list