Skip to content

Commit

Permalink
Added comments to haltFromCount: and haltOnCount:
Browse files Browse the repository at this point in the history
I did not change the naming: the logic is fixed and the meaning can be discussed, if possible with native speaker's help.
  • Loading branch information
StevenCostiou committed Jan 30, 2019
1 parent 2abba39 commit 691b56d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/Kernel/Halt.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Class {

{ #category : #halting }
Halt class >> fromCount: anInteger [
"Always halt after a count has been reached"

<debuggerCompleteToSender>
^ self
onCountWithBehavior: [ :node | (node propertyAt: #haltCount) >= anInteger ]
Expand Down Expand Up @@ -144,6 +146,8 @@ Halt class >> now: aString [

{ #category : #halting }
Halt class >> onCount: anInteger [
"Halts once when a count is reached"

<debuggerCompleteToSender>
^ self
onCountWithBehavior: [ :node | (node propertyAt: #haltCount) = anInteger ]
Expand Down
12 changes: 8 additions & 4 deletions src/Kernel/Object.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,11 @@ Object >> halt: aString [
]

{ #category : #halting }
Object >> haltFromCount: anInteger [
Object >> haltFromCount: anInteger [
"Always halt after a count has been reached"

<debuggerCompleteToSender>
Halt fromCount: anInteger.
Halt fromCount: anInteger
]

{ #category : #halting }
Expand Down Expand Up @@ -1007,9 +1009,11 @@ Object >> haltIfTest [
]

{ #category : #halting }
Object >> haltOnCount: anInteger [
Object >> haltOnCount: anInteger [
"Halts once when a count is reached"

<debuggerCompleteToSender>
Halt onCount: anInteger.
Halt onCount: anInteger
]

{ #category : #halting }
Expand Down

0 comments on commit 691b56d

Please sign in to comment.