[squeak-dev] Re: Some question regarding portability

Andreas Raab andreas.raab at gmx.de
Tue May 10 12:45:36 UTC 2011


On 5/10/2011 12:21, Sven Van Caekenberghe wrote:
>
> On 10 May 2011, at 11:48, Levente Uzonyi wrote:
>
>> On Tue, 10 May 2011, Sven Van Caekenberghe wrote:
>>
>>> Hi All,
>>>
>>> I would like to improve the portability of Zinc HTTP Components ( http://zn.stfx.eu ) to Squeak. During the development of Zn I have regulary tested on Squeak (currently 4.2 #10977), and most of the code works unmodified. Recently, I had another look, and I would like to fix some issues, if possible.
>>>
>>> - Are announcements available ? Can this framework be loaded ? What is the official way to do this ?
>>
>> There are at least four different implementations of the announcements framework. They are not (fully) compatible with each other. The question is: which one is required by Zinc?
>
> I am not aware of that many versions.
> I subclass Announcement, instanciate an Announcer, send #announce: and #on:send:do to it, that's all.

Then how about adding ZnAnnouncement, ZnAnnouncer with the two or three 
methods that you actually need? Announcements always struck me as more 
of a pattern than a framework.

Cheers,
   - Andreas

> Would Announcements from http://www.squeaksource.com/AXAnnouncements do ? What is the AX variant by the way ? This repository has not seen many recent updates, I assume it still works for Squeal 4.2.
>
>>>
>>> - How does one do MD5 hashing in Squeak ? We used to fall back to either CMD5Hasher or TCryptoRandom, but none are in the standard image. What has to be loaded to make this work (again) ?
>>
>> The MD5 class is in the Cryptography package.
>
> I guess you mean the main Cryptograhy package from http://www.squeaksource.com/Cryptography, I can't seem to find any loading instructions. I will try.
>
>>>
>>> - Has there ever been a MIMEType class ? This is not crucial at all, I am just wondering why it is not there.
>>
>> I don't think so.
>
> OK
>
>>> - I guess that ByteTextConverter class>>#encodeTable and ByteTextConverter class>>#decodeTable play the same role as ByteTextConverter class>>#unicodeToByteTable and ByteTextConverter class>>#byteToUnicodeTable ?
>>
>> It's hard to answer your question without knowing what ByteTextConverter class>>  #unicodeToBytTable and ByteTextConverter class>>  #byteToUnicodeTable are.
>
> I will just try then.
>
>> Levente
>
> Thanks for the reply,
>
> Sven
>
>
>




More information about the Squeak-dev mailing list