The Trunk: Kernel-ct.1691.mcz

[email protected]
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Christoph Thiede uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ct.1691.mcz

==================== Summary ====================

Name: Kernel-ct.1691
Author: ct
Time: 28 August 2026, 10:56:08.298641 pm
UUID: 6c7d5ed8-6d33-47d1-9fa9-c97d1d7d0773
Ancestors: Kernel-mt.1689

Avoids returning nil from #haltIf:/#haltOnceIf: so it can always be wrapped around another expression without changing its value.

=============== Diff against Kernel-mt.1689 ===============

Item was changed:
  ----- Method: Object>>haltIf: (in category 'debugging') -----
  haltIf: aBooleanOrBlockOrSelector
  	"This is the typical message to use for inserting breakpoints during debugging. Param can be a boolean block or value, halt if true.
  	If the block has one arg, the receiver is bound to that.
   	If the argument is a selector, we look up in the callchain. Halt if any method's selector equals selector."
  
+ 	(self meetsHaltCondition: aBooleanOrBlockOrSelector)
+ 		ifTrue: [self halt].!
- 	^ (self meetsHaltCondition: aBooleanOrBlockOrSelector)
- 		ifTrue: [self halt]!

Item was changed:
  ----- Method: Object>>haltOnceIf: (in category 'debugging') -----
  haltOnceIf: aBooleanOrBlockOrSelector
  	"Check aBooleanOrBlockOrSelector and halt, unless we have already done it once. See #meetsHaltCondition:."
  	
  	self haltOnceEnabled ifFalse: [^ self].
+ 	(self meetsHaltCondition: aBooleanOrBlockOrSelector)
- 	^ (self meetsHaltCondition: aBooleanOrBlockOrSelector)
  		ifTrue:
+ 			[self clearHaltOnce; halt].!
- 			[self clearHaltOnce; halt]!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.