help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Recompiling a method while it's on the stack


From: Rob Hoelz
Subject: Re: [Help-smalltalk] Recompiling a method while it's on the stack
Date: Thu, 15 Nov 2007 18:41:04 -0600

Rob Hoelz <address@hidden> wrote:

> 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
> 

Nevermind...I need to look at my code a little more closely...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]