help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] [PATCH] Process creation


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] [PATCH] Process creation
Date: Tue, 25 Mar 2014 17:33:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Il 25/03/2014 15:00, Gwenaël Casaccio ha scritto:
+        <category: 'private'>
+
+        Termination isNil ifFalse: [ ^ Termination ].
+        ^ [
+            Termination isNil ifTrue: [ Termination := MethodContext
+                                                                stack: 4
+                                                                flags: 6
+                                                                method: 
UndefinedObject>>#__terminate
+                                                                ip: 0
+                                                                sp: -1 ].
+            Termination
+          ] valueWithoutPreemption
+    ]

Can you explain this better?  What does it have to do with #ensure:?

Also, can you just use ##( ... ) and avoid #valueWithoutPreemption?

Paolo



reply via email to

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