Issue 6072 in pharo: Instance variables not properly added to the class definition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6072 in pharo: Instance variables not properly added to the class definition

pharo
Status: New
Owner: ----
Labels: Milestone-2.0 Type-Nautilus

New issue 6072 by [hidden email]: Instance variables not properly added  
to the class definition
http://code.google.com/p/pharo/issues/detail?id=6072

When declaring instance variables that do not exist into an #initialize  
method, they are being added to the following:

expected:

Object subclass: #Person
        instanceVariableNames: 'first_name last_name'
        classVariableNames: ''
        poolDictionaries: ''
        category: 'Person-Demo'

actual:

Person class
        instanceVariableNames: 'first_name last_name'

However, they should appear within the following:

Setup:

a)  Mac OS 10.7.4
b)  Pharo2.0a - #20043

Steps:

1.  Create a new class.
2.  Add initialize method to the instance side.  For example,

      initialize
        "Initialization code for Person class"

        super initialize.
       
        first_name := 'Conrad'.
        last_name := 'Taylor'.
       
        ^self

3.  Command + s

4.  Now, you'll be asked to fix the missing symbols by clicking 'declare  
instance'.



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6072 in pharo: Instance variables not properly added to the class definition

pharo
Updates:
        Status: Invalid

Comment #1 on issue 6072 by [hidden email]: Instance variables not  
properly added to the class definition
http://code.google.com/p/pharo/issues/detail?id=6072

I think you added the #initialize by accident on the class side...
(I tested it and it works for me)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker