[Issue 5199] null implicitly converts to any other type on array assignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 16 20:15:04 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5199
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at digitalmars.com
Resolution| |INVALID
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2010-11-16 20:13:51 PST ---
null is a valid value for a slice, and the rvalue of the assignment is expected
to be a slice. It's a slice with 0 length (which is still a valid slice), and
for slice assignment to work the length of the lvalue must match the length of
the rvalue. The message is correct - the lengths don't match.
This is working as designed.
--
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