Dynamic arrays allocation size
renoX
renozyx at gmail.com
Tue Mar 26 07:04:23 PDT 2013
On Tuesday, 26 March 2013 at 13:56:26 UTC, Luís Marques wrote:
[cut]
> Ahh, right. If you do
>
> auto data = new byte[3 * 1024 * 1024 * 1024L];
>
> with the L suffix, then it works, of course. But this is crazy!
> :-)
>
> Really, something needs to be rethought here, do you really
> want your constant folding to to overflow at 32 bits by
> default?. Is this because of CTFE?
>
> Luís
I don't know why there is this behaviour but I fully agree with
you that this is a bug.
It should at least trigger a warning..
renoX
More information about the Digitalmars-d
mailing list