[Issue 6028] Cannot implicitly convert an array of class to an array of interface
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 18 10:18:07 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6028
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |schveiguy at yahoo.com
Resolution| |INVALID
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-05-18 10:13:59 PDT ---
Actually, you shouldn't be able to convert either.
See issue 2095
Though converting from a class array to an interface array is even worse -- an
interface reference is not the same address of a class reference. So this
implicit cast would not only have to rewrite all the elements, it would corrupt
the original array.
--
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