Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
October 13, 2015 [Issue 15184] Wrongly shaped array accepted as matrix initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15184 Wyatt <wyatt.epp@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wyatt.epp@gmail.com --- Comment #1 from Wyatt <wyatt.epp@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? -- |
October 13, 2015 [Issue 15184] Wrongly shaped array accepted as matrix initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15184 --- Comment #2 from bearophile_hugs@eml.cc --- (In reply to Wyatt from comment #1) > The documentation on Arrays states that a static matrix declaration is contiguous in memory so I'd guess this is actually intentional? A serious language needs should not be sloppy. -- |
October 14, 2015 [Issue 15184] Wrongly shaped array accepted as matrix initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15184 --- Comment #3 from Wyatt <wyatt.epp@gmail.com> --- (In reply to bearophile_hugs from comment #2) > > A serious language needs should not be sloppy. I wasn't arguing in favour of the current behaviour so much as pointing out why it might be like that at all. I agree that it's wrong. -- |
October 15, 2015 [Issue 15184] Wrongly shaped array accepted as matrix initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15184 Vladimir Panteleev <thecybershadow@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com --- Comment #4 from Vladimir Panteleev <thecybershadow@gmail.com> --- This is obviously a bug because if you make the array static, you get an error. This only applies to non-static array initialization, which has no reason to be syntactically inconsistent. -- |
December 17, 2022 [Issue 15184] Wrongly shaped array accepted as matrix initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15184 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
December 13 [Issue 15184] Wrongly shaped array accepted as matrix initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15184 --- Comment #5 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19056 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation