On Aug 23, 2010, at 12:21 PM, Gary Chambers wrote:
> He was porting his stuff from Squeak 3.9
>
> 3107 apparently.
>
> c.f.
> #(12 35) asByteArray asInteger asByteArray
This is what I tried
#(12 35) asByteArray asInteger on my old 3.9 7067 final image and it
barks.
Then a nice explicit loops should make it too.
Stef
>
> Unfortunately heavily used when doing low-level stuff with external devices
> socket data etc.
> (let us not get into endianess either though ;-) )
>
> Regards, Gary
>
> ----- Original Message ----- From: "Stéphane Ducasse"
> <[email protected]>
> To: <[email protected]>
> Sent: Monday, August 23, 2010 11:01 AM
> Subject: Re: [Pharo-project] 'foo' asTime
>
>
>> #[12 35] asInteger
>> is not in 1.0, 1.1, and 1.2
>> It does not work in squeak trunk either
>> did not work in 3.9 either.
>> So I'm puzzled.
>>
>> Now everybody can create his own personal package with the extensions they
>> like.
>>
>> Stef
>>
>> On Aug 23, 2010, at 11:52 AM, Gary Chambers wrote:
>>
>>> +1
>>>
>>> One of our developers recently complained of #asInteger being removed from
>>> ByteArray for instance...
>>>
>>> Regards, Gary
>>>
>>> ----- Original Message ----- From: "Brent Pinkney" <[email protected]>
>>> To: <[email protected]>
>>> Sent: Monday, August 23, 2010 8:00 AM
>>> Subject: Re: [Pharo-project] 'foo' asTime
>>>
>>>
>>>>> I would really like to have the approach proposed by K. Beck on conversion
>>>>> methods. Conversion methods for API compatible objects. Of course it will
>>>>> lead to less compact program (URL readFrom: 'http://' instead of 'http://'
>>>>> url) but avoids a lot of code in String (of course class extensions limit
>>>>> the plague).
>>>>
>>>> Hi, please reconsider this. There is just no way (Duration seconds: 3) is
>>>> better than '3 seconds'.
>>>>
>>>> This smacks of working for the computer instead of the other way around.
>>>>
>>>> Brent
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [email protected]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [email protected]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project