install TraitsBrowser?
Trygve Reenskaug
trygver at ifi.uio.no
Thu Feb 21 10:52:15 UTC 2008
I tried to follow your instructions. But it doesn't really matter, does
it? /
initialize /is called from the instantiation of OBBrowser and its
subclasses. The method /initialize /is implemented in OBCodeBrowser
where it initializes its inst.vars. The subclass, OBSystemBrowser adds
another inst.var., but it doesn't have a corresponding /initialize
/method. I call it a bug, some might call it a glitch, and there might
be some that consider it good practice to rely on initializing inst.vars
as side effects of various system operations. (Lazy initialization is
another matter, of course)
Cheers :-)
--Trygve
On 21.02.2008 11:25, Damien Cassou wrote:
> Hi Trygve,
>
> On Thu, Feb 21, 2008 at 11:08 AM, Trygve Reenskaug <trygver at ifi.uio.no> wrote:
>
>> It was the classical Smalltalk error: an uninitialized inst.var. (nil
>> instead of a Boolean).
>>
>> The error occurred when I first opened OBSystemBrowser. hasChanges was nil
>> when it shouldn't be; I think this was the failing method.
>>
>
>
> I've never seen this error. What is your image and how did you install
> OmniBrowser on it?
>
>
>> A comment: I like to add an empty initialize method to Object so that all
>> other initialize methods can start with super initialize.
>>
>
> Always sending 'super initialize' is a good habit. But #initialize is
> already implemented in ProtoObject so there is no need to implement it
> in Object.
>
>
--
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://heim.ifi.uio.no/~trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080221/2e68229d/attachment.htm
More information about the Squeak-dev
mailing list
|