[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Recompiling a method while it's on the stack
From: |
Rob Hoelz |
Subject: |
[Help-smalltalk] Recompiling a method while it's on the stack |
Date: |
Thu, 15 Nov 2007 18:16:44 -0600 |
Hello Smalltalkers,
Kind of a thought experiment here, but is the behavior for recompiling a
method while it's on the stack defined? For example:
Object subclass: Foo [
foo [
Transcript print: 1; cr.
reloadSource.
Transcript print: 2; cr.
]
reloadSource [
FileStream fileIn: 'test.st'.
]
]
|f|
f := Foo new.
f foo.
I ran this, but did kind of an infinite loop thing. Is this a bug, or
is something like this supposed to happen?
Thanks,
Rob Hoelz
- [Help-smalltalk] Recompiling a method while it's on the stack,
Rob Hoelz <=