[Coldstuff] disturbing Cold behavior
Bruce Mitchener
coldstuff@cold.org
Wed, 03 Apr 2002 16:58:22 -0700
In theory, I should know the answer to this, but I'm totally stumped.
I had a set up like this:
method 1:
... do some stuff ...
object2.method2();
... do some more stuff, including I/O
and then, in method2:
... do some stuff ...
... do something dumb that threw an error ...
And, in that situation, _all_ of method 1 ran and completed, despite the
error. In the course of trying to figure out what was going on, I'd
recompiled both methods a couple of times, and eventually, after
recompiling method2 a couple of times (adding, removing debug code), the
problem stopped happening, and the error started to kill method 1 as
expected.
One important thing to note is that in the course of doing this
debugging, I had put a catch any { ... } with {
$user_bruce.tell(toliteral(traceback())); } around the whole body of
method 1 and verified that method 1 was only getting executed once and
so there wasn't any situation where it was running twice but only
running the method2 once or anything.
I probably need to find a more coherent way of explaining this.
This is a dev, unreleased copy of Genesis, but I'm not sure that there's
anything in there that might cause that. Has anyone else seen anything
remotely like this happen in the past?
- Bruce