[Issue 19010] new fails on dynamic array aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 21 16:28:04 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19010
Basile B. <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #2 from Basile B. <b2.temp at gmx.com> ---
Grammartically it's valid (it's the first new rule, i.e `new
AllocatorArgumentsopt Type`) but since `new` for arrays doesn't return a
pointer to an array, allowing this would be a bit pointless because
`int[] a = new int[];`
would be the same as
`int[] a;`
--
More information about the Digitalmars-d-bugs
mailing list