digitalmars.D.bugs - [Issue 882] New: associative arrays with TypeInfo keys are broken for user defined types
- d-bugmail puremagic.com (30/36) Jan 24 2007 http://d.puremagic.com/issues/show_bug.cgi?id=882
- d-bugmail puremagic.com (9/9) Feb 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=882
http://d.puremagic.com/issues/show_bug.cgi?id=882 Summary: associative arrays with TypeInfo keys are broken for user defined types Product: D Version: 1.00 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: thomas-dloop kuehne.cn # typedef short A; # typedef float B; # # void main(){ # TypeInfo[TypeInfo] aa; printf("len:%d\n", aa.length); # aa[typeid(A)] = null; printf("len:%d\n", aa.length); # aa[typeid(B)] = null; printf("len:%d\n", aa.length); # } output:len:0 len:1 len:1Using primitive types the results are as expected: # void main(){ # TypeInfo[TypeInfo] aa; printf("len:%d\n", aa.length); # aa[typeid(short)] = null; printf("len:%d\n", aa.length); # aa[typeid(float)] = null; printf("len:%d\n", aa.length); # } output:len:0 len:1 len:2--
Jan 24 2007
http://d.puremagic.com/issues/show_bug.cgi?id=882 thomas-dloop kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ------- Comment #1 from thomas-dloop kuehne.cn 2007-02-23 16:35 ------- *** This bug has been marked as a duplicate of 887 *** --
Feb 23 2007