[Issue 13670] bug in assigning to dynamic array element
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Nov 1 20:25:21 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13670
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to Ketmar Dark from comment #2)
> so i don't have to
> track if my variable is dynamic or static array manually.
In general, I'd be very worried about code that didn't care about whether it
was dealing with a dynamic array or a static array, because they're
fundamentally different types. It just seems like it's begging for trouble. The
only case where that might make sense is where you have a dynamic array which
is a slice of a static one, but then you're dealing with a dynamic one, not a
static one, so you're still just dealing with dynamic arrays rather than having
to worry about whether an array is dynamic or static.
--
More information about the Digitalmars-d-bugs
mailing list