[Issue 15184] Wrongly shaped array accepted as matrix initializer
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Oct 13 12:14:09 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15184
Wyatt <wyatt.epp at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wyatt.epp at gmail.com
--- Comment #1 from Wyatt <wyatt.epp at gmail.com> ---
The documentation on Arrays states that a static matrix declaration is
contiguous in memory so I'd guess this is actually intentional? Or at least
tacitly approved as a holdover from C? D doesn't really seem to have a strong
concept of rank or shape and, from what I could decipher of the grammar, this
scenario isn't really covered.
Does this also indicate the need for a rho or reshape function?
--
More information about the Digitalmars-d-bugs
mailing list