[BUG] method code lost

Dean_Swan at Mitel.COM Dean_Swan at Mitel.COM
Wed Apr 21 14:20:15 UTC 2004


Hi Noury,

What version of Squeak are you using?  Could you also give a step by step 
example of how to reproduce your "bug"?

I have tried the following in Squeak 3.2 (with my fix for the --all 
category--), 3.6-5429, 3.7-5816 and it works without a problem:

        1) open a browser
        2) click on 'Kernel-Numbers'
        3) click on 'Integer'
        4) click on any existing method
        5) delete the method source in the text pane and type:

                newIntegerMethod
                        ^self

        6) accept the method (<alt>-s or <cmd>-s on MacOS)

'newIntegerMethod' gets added to the '--all--' category of 'Integer'. 
'newIntegerMethod' will also get added to the category of the previously 
selected method.  For example, I selected '*' which is in the 'arithmetic' 
category, so 'newIntegerMethod' will also get added to the  'arithmetic' 
category.

If you don't want the new metod to be added to the same category of the 
previously selected method you can also try the following example:

        1) open a browser
        2) click on 'Kernel-Numbers'
        3) click on 'Integer'
        4) click on the '--all--' category
        5) delete the method source in the text pane and type:

                newIntegerMethod
                        ^self

        6) accept the method (<alt>-s or <cmd>-s on MacOS)


Does this help?

        -Dean Swan






Noury Bouraqadi <bouraqadi at ensm-douai.fr>
Sent by: squeak-dev-bounces at lists.squeakfoundation.org
04/21/04 09:39 AM
Please respond to The general-purpose Squeak developers list 

 
        To:     "squeak-dev at lists.squeakfoundation.org" 
<squeak-dev at lists.squeakfoundation.org>
        cc: 
        Subject:        [BUG] method code lost


Hi,

Today is my complaints day :-)

When I select a class in the browser, I can see all it method selectors 
in the method pane.
However, no category is selected. I can even select a method without 
having a category selected.

Now the bug: I can add a new method without selecting a category.
The code of the method is lost... Why by default method category -- all 
-- is not highlighted ?
In this case a new method is not lost and appears 'as yet unclassifyied' 
which is a good behavior.

Noury

-- 
------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
Ecole des Mines de Douai - Dept. G.I.P
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group
http://www.esug.org 

Squeak: an Open Source Smalltalk
http://www.squeak.org 
------------------------------------------





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040421/f598dd87/attachment.htm


More information about the Squeak-dev mailing list