|
Re: How to know where a BlockClosure finish: msg#00235lang.smalltalk.squeak.beginners
On 25.08.2006, at 17:14, Mathieu wrote: Hi, There is #hasMethodReturn in BlockContext: [^3] hasMethodReturn --> true [3] hasMethodReturn --> false. But this does a static analysis of the code... even if the ^is not executed (e.g.) [nil ifNotNil: [^3]] hasMethodReturn --> true so... it would be harder to analyze that dynamically... e.g. (without me thinking to much) you could add code (e.g. using ByteSurgeon) in front of the return inside a block to set a flag... but I have to admit that this woud be quite strange stuff... I need this to interprete a file containing smalltalk and I want to Why do you need that? I am sure we can find a simple solution if we understand the problem better. Marcus
Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How to partition an application, stéphane ducasse |
|---|---|
| Next by Date: | Re: How to know where a BlockClosure finish, Mathieu |
| Previous by Thread: | How to know where a BlockClosure finish, Mathieu |
| Next by Thread: | Re: How to know where a BlockClosure finish, Mathieu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |