'int' is enough for 'length' to migrate code from x86 to x64

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 21 06:47:55 PST 2014


On Fri, 21 Nov 2014 11:17:06 -0300
Ary Borenszweig via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> "This bug can manifest itself for arrays whose length (in elements) is 
> 2^30 or greater (roughly a billion elements)"
> 
> How often does that happen in practice?
once in almost ten years is too often, as for me. i think that the
answer must be "never". either no bug, or the code is broken. and one
of the worst code is the code that "works most of the time", but still
broken.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141121/c9279da0/attachment.sig>


More information about the Digitalmars-d mailing list