Skip to content

Commit

Permalink
Add byteAt: as alias to digitAt: to Integer in Pharo 7 to support for…
Browse files Browse the repository at this point in the history
…ward compatibility with Pharo 8

#5077
  • Loading branch information
Sven Van Caekenberghe committed Nov 7, 2019
1 parent ecc855d commit 24bc6c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Kernel/Integer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,13 @@ Integer >> bitXor: n [
length: (self digitLength max: norm digitLength)
]

{ #category : #'system primitives' }
Integer >> byteAt: index [
"Alias to support forward compatibility with Pharo 8"

^ self digitAt: index
]

{ #category : #'truncation and round off' }
Integer >> ceiling [
"Refer to the comment in Number|ceiling."
Expand Down

0 comments on commit 24bc6c6

Please sign in to comment.