Integer #byteAt: #digitAt: portability

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Integer #byteAt: #digitAt: portability

Sven Van Caekenberghe-2
Hi,

Recently, #digitAt: was renamed to #byteAt: in Pharo 8. I totally agree that this is better.

However, how does one write a library that needs to use this selector and wants portability with at least Pharo 7 ?

That requires quite some effort from my side (either an ugly dynamic hack, or different source code packages, just for one method).

Can we back port #byteAt: at least as an alias to Pharo 7 ?

Sven


Reply | Threaded
Open this post in threaded view
|

Re: Integer #byteAt: #digitAt: portability

ducasse


> On 8 Oct 2019, at 18:52, Sven Van Caekenberghe <[hidden email]> wrote:
>
> Hi,
>
> Recently, #digitAt: was renamed to #byteAt: in Pharo 8. I totally agree that this is better.
>
> However, how does one write a library that needs to use this selector and wants portability with at least Pharo 7 ?
>
> That requires quite some effort from my side (either an ugly dynamic hack, or different source code packages, just for one method).
>
> Can we back port #byteAt: at least as an alias to Pharo 7 ?

yes of course good idea.
If you can send a PR it will be faster :)
>
> Sven
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Integer #byteAt: #digitAt: portability

Sven Van Caekenberghe-2
https://github.com/pharo-project/pharo/pull/5079

> On 8 Oct 2019, at 19:32, ducasse <[hidden email]> wrote:
>
>
>
>> On 8 Oct 2019, at 18:52, Sven Van Caekenberghe <[hidden email]> wrote:
>>
>> Hi,
>>
>> Recently, #digitAt: was renamed to #byteAt: in Pharo 8. I totally agree that this is better.
>>
>> However, how does one write a library that needs to use this selector and wants portability with at least Pharo 7 ?
>>
>> That requires quite some effort from my side (either an ugly dynamic hack, or different source code packages, just for one method).
>>
>> Can we back port #byteAt: at least as an alias to Pharo 7 ?
>
> yes of course good idea.
> If you can send a PR it will be faster :)
>>
>> Sven