On Thu, Aug 08, 2002 at 12:14:09 +0100, Matthew French wrote:
> JPL suggested:
> >  Recursion is only truely useful if you have an infinite stack. People
> > that think they have an infinite stack shouldn't be let near a compiler.
>
> Well, when studying engineering the rule of thumb was that infinity was 10
> times bigger then the most you could expect to use.
>
> Therefore I believe in infinite stack.
I worked on a testharness for (wait for it) petrol pumps some years ago,
little embeded controller spoke to its DOS (not exactly the easiest
environment to track crashing bugs under) master which logged its
piteous whinings. I inherited the dos part of it and worked mostly on
creating the other end of it. Near the end of the project we gave it
extensive long burnin tests, sadly overnight tests would always crash
out for some obscure reason.  Tracking it down showed that my
predecessor's "add new entries to the end of its linked list" function
recursively called itself with each following link until the terminating
one showed up. Of course it died miserably when it ran out of stack. I'm
sure he felt he'd done a good days work when he planted that bomb for
me.
C.
--
Caolan McNamara               |  caolan@skynet.ie
http://www.skynet.ie/~caolan  |  +353 86 8161184
So much insanity, so little time...
--
Irish Linux Users' Group: ilug@linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster@linux.ie

from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 59B6244133
	for <jm@localhost>; Thu,  8 Aug 2002 08:32:31 -0400 (EDT)
from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Thu, 08 Aug 2002 13:32:31 +0100 (IST)
from webnote.net (mail.webnote.net [193.120.211.219]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g78CFk201882 for
    <jm-ilug@JMASON.ORG>; Thu, 8 Aug 2002 13:15:46 +0100
from lugh.tuatha.org (root@lugh.tuatha.org [194.125.145.45]) by
    webnote.net (8.9.3/8.9.3) with ESMTP id LAA29574 for <jm-ilug@jmason.org>;
    Thu, 8 Aug 2002 11:45:06 +0100
from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org
    (8.9.3/8.9.3) with ESMTP id LAA09962; Thu, 8 Aug 2002 11:42:42 +0100
from ie.suberic.net (owsla.ie.suberic.net [62.17.162.83]) by
    lugh.tuatha.org (8.9.3/8.9.3) with ESMTP id LAA09927 for <ilug@linux.ie>;
    Thu, 8 Aug 2002 11:42:31 +0100
from owsla.ie.suberic.net (owsla [127.0.0.1]) by ie.suberic.net
    (8.11.6/8.11.6) with ESMTP id g78AgTY18408 for <ilug@linux.ie>;
    Thu, 8 Aug 2002 11:42:29 +0100
From ilug-admin@linux.ie  Thu Aug  8 14:11:38 2002