[Pharo-project] Infinite recursion

Schwab,Wilhelm K bschwab at anest.ufl.edu
Wed Nov 17 17:46:37 CET 2010

I asked this some time back.  One dark side of doing this is that it *can* result in unwanted/inappropriate failures.  In practice though, Dolphin's limits on the stack has been a good thing.

From: pharo-project-bounces at lists.gforge.inria.fr [pharo-project-bounces at lists.gforge.inria.fr] On Behalf Of Guillermo Polito [guillermopolito at gmail.com]
Sent: Wednesday, November 17, 2010 11:44 AM
To: Pharo-project at lists.gforge.inria.fr
Subject: [Pharo-project] Infinite recursion


Yesterday I got into an infinite recursion, because of adding an ordered collection into itself.  And #hash is defined in terms of its containees, hehe.

Why I did that? It doesn't really matters. I was testing a little project I'm doing for the University.

So I came into an infinite recursion, which didn't stop until the VM run out of memory...  And the question is.. Shouldn't it throw an error like a stack overflow when we run into those cases?


More information about the Pharo-project mailing list