recursive equal, and firstDifference functions

John Colvin john.loughran.colvin at gmail.com
Tue Mar 19 05:29:06 PDT 2013


On Tuesday, 19 March 2013 at 12:16:54 UTC, John Colvin wrote:
> (except if you feed it two integer literals, in which case the 
> compiler throws an out of memory error!).

Which is a legitimate error, seeing as -1 as a size_t is 
size_t.max which meant replicate was requesting size_t.max * 
int.sizeof bytes. See my correction to the code in my other reply.


More information about the Digitalmars-d-learn mailing list