From 24bc6c632e76a5e30f2c2bd4f66f1440b61bb9d9 Mon Sep 17 00:00:00 2001 From: Sven Van Caekenberghe Date: Thu, 7 Nov 2019 13:56:00 +0100 Subject: [PATCH] Add byteAt: as alias to digitAt: to Integer in Pharo 7 to support forward compatibility with Pharo 8 https://github.com/pharo-project/pharo/issues/5077 --- src/Kernel/Integer.class.st | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Kernel/Integer.class.st b/src/Kernel/Integer.class.st index ab9dba4eaaf..ba613bb4116 100644 --- a/src/Kernel/Integer.class.st +++ b/src/Kernel/Integer.class.st @@ -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."