Indeed it would make sense.

On Aug 23, 2010, at 2:03 PM, Henrik Johansen wrote:

> 
> On Aug 23, 2010, at 1:28 28PM, Gary Chambers wrote:
> 
>> Odd, my 3.9 works.
>> 
>> Method ByteArray>>asInteger by "len 10/15/2002 18:45"
>> 
>> Regards, Gary
>> 
> 
> Integer >> asByteArray is in a 1.0 image, introduced when MD5 was put into 
> core.
> Maybe you have the Cryptography package in your 3.9 image, and that included 
> it?
> 
> Cheers,
> Henry
> 
> 
>> ----- Original Message ----- From: "Stéphane Ducasse" 
>> <[email protected]>
>> To: <[email protected]>
>> Sent: Monday, August 23, 2010 11:33 AM
>> Subject: Re: [Pharo-project] 'foo' asTime
>> 
>> 
>> 
>> 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 
>> 
>> _______________________________________________
>> 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

Reply via email to