[Pharo-project] Collection new

Steve Wart steve at wart.ca
Tue Jan 31 18:48:47 EST 2012


On Tue, Jan 31, 2012 at 3:40 PM, Eliot Miranda <eliot.miranda at gmail.com>wrote:

>
> On Mon, Jan 30, 2012 at 9:18 PM, S Krish <
> krishnamachari.sudhakar at gmail.com> wrote:
>
>> In general why is there not a catch all for Stack Overflow and infinite
>> loops.
>
>
> There is, low space (and user interrupt for flat infinite loops).  But the
> low space interrupt machinery is easily broken.  It is difficult to test,
> and an increasingly silly approach on modern machines with huge amounts of
> memory.  We need to think again.
>

GemStone has a user variable for maximum stack depth (defaults to 10000 I
think). The exception it raises is not so much a clever solution to the
halting problem but it catches some human errors, which is nice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120131/46048c4a/attachment-0001.html>


More information about the Pharo-dev mailing list