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

Araq via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 21 06:37:39 PST 2014


> no, the problem 2 just becomes hidden. while the given code 
> works most
> of the time, it is still broken.

You cannot handle stack overflow in C reliably or out of memory
conditions so "fails in extreme edge cases" is true for every
piece of software.

"broken" is not a black-white thing. "Works most of the time"
surely is much more useful than "doesn't work". Otherwise you
would throw away your phone the first time you get a busy signal.


More information about the Digitalmars-d mailing list