On Tuesday, 26 March 2013 at 05:38:41 UTC, Ali Çehreli wrote:
On a tangent, despite appearances, the type of the right-hand side is int with the value of -1073741824. It is according to the arithmetic conversion rules:

  http://dlang.org/type.html

Ali

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

Reply via email to