Dialog warn: equivalent in squeak
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Wed May 28 11:49:19 UTC 2003
Actually, "self inform:" is way better.
How would creating an explicit dependency to PopUpMenu be better than a
generic message send to self? That is as encapsulated as you can get.
The fact that _currently_, generic methods are implemented as instance
methods of Object is just a nuisance. The main point is that currently,
any object depends on Object anyway, so no artificial dependency is
introduced at all.
That nuisance will go away when we find a better alternative to
stuffing these generic methods onto Object. Several suggestions exist
(Andreas' environments idea, Traits, a Browser that understands
packages, etc.), we would just have to realize them.
-- Bert
Am Mittwoch, 28.05.03 um 09:50 Uhr schrieb Stephane Ducasse:
> It would better to say PopUpMenu inform: 'hello'
> because having inform: on Object is not so good.
>
> Stef
>
> On Tuesday, May 27, 2003, at 06:13 PM, Bob Arning wrote:
>
>> On Tue, 27 May 2003 09:05:28 -0700 "Bovaird, Brian"
>> <Brian.Bovaird at NOVELLUS.com> wrote:
>>> In VisualWORKS I can use
>>>
>>> Dialog warn: 'hello'
>>>
>>> to create a pop up that displays my string 'hello' and have an OK
>>> button.
>>>
>>> Is there an equivalent in Squeak. I looked but did not find one.
>>
>> self inform: 'hello'
>>
>> Cheers,
>> Bob
>>
>>
>
>
More information about the Squeak-dev
mailing list
|