From 520458c927e8e622311a08af38b050cd88c86c8d Mon Sep 17 00:00:00 2001 From: Guille Polito Date: Thu, 7 Sep 2023 16:00:56 +0200 Subject: [PATCH] Make unwind complete the second temporary instead of the antepenultimate. This makes it simpler to read and understand --- src/Kernel/Context.class.st | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Kernel/Context.class.st b/src/Kernel/Context.class.st index 30de077a666..634a10c829d 100644 --- a/src/Kernel/Context.class.st +++ b/src/Kernel/Context.class.st @@ -2266,16 +2266,16 @@ Context >> unwindBlock [ Context >> unwindComplete [ "unwindContext only. access temporaries from BlockClosure>>#ensure: and BlockClosure>>#ifCurtailed:" - "The complete flag is in the antepenultimate temporary" - ^ self tempAt: self numTemps - 1 + "The complete flag is in the second temporary" + ^ self tempAt: self numArgs + 2 ] { #category : #'special context access' } Context >> unwindComplete: aBoolean [ "unwindContext only. access temporaries from BlockClosure>>#ensure: and BlockClosure>>#ifCurtailed:" - "The complete flag is in the antepenultimate temporary" - self tempAt: self numTemps - 1 put: aBoolean + "The complete flag is in the second temporary" + self tempAt: self numArgs + 2 put: aBoolean ] { #category : #'private - exceptions' }