[Issue 1886] Inserting into an AA of structs with opAssign results in ArrayBoundsError
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 16 13:09:16 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1886
--- Comment #3 from Michael Rynn <y0uf00bar at gmail.com> 2009-12-16 13:09:14 PST ---
We are now 2.037 and still not fixed.
The documentation on D2.0 Associative Arrays with struct is wrong.
Adding the post-blit still allows the struct to be used as key, but not a
value. This is wierd. What is the approved opAssign example return type now?
pblit opAssign(ref const pblit S)
{
this.x = S.x;
return this; // return a value
}
-- OR ---
pblit* opAssign(ref const pblit S)
{
this.x = S.x;
return &this; // this is a struct!
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list