Cannot be recompiled

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

Cannot be recompiled

tinchodias
Hi,

In:

Object 
subclass: #A
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

(Smalltalk at: #A) 
subclass: #B 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

Object 
variableSubclass: #A 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

---> why do we raise the error "B cannot be recompiled"?

what's the problem with reformatting subclasses automatically?

best regards,
Martin



Reply | Threaded
Open this post in threaded view
|

Re: Cannot be recompiled

tinchodias
Hi, 

(forwarded from pharo-users)

Object 
subclass: #A
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

(Smalltalk at: #A) 
subclass: #B 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

Object 
variableSubclass: #A 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

I'm working in the "new class builder" [1]. It automatically propagates this format change to the subclasses, instead of raising the error like the current class builder does. ie, the class B becomes variable when A becomes variable.

Do you agree?

Cheers,
Martin




On Tue, Apr 23, 2013 at 2:05 PM, Martin Dias <[hidden email]> wrote:
Hi,

In:

Object 
subclass: #A
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

(Smalltalk at: #A) 
subclass: #B 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

Object 
variableSubclass: #A 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

---> why do we raise the error "B cannot be recompiled"?

what's the problem with reformatting subclasses automatically?

best regards,
Martin




Reply | Threaded
Open this post in threaded view
|

Re: Cannot be recompiled

Mariano Martinez Peck



On Wed, Apr 24, 2013 at 10:08 AM, Martin Dias <[hidden email]> wrote:
Hi, 

(forwarded from pharo-users)

Object 
subclass: #A
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

(Smalltalk at: #A) 
subclass: #B 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

Object 
variableSubclass: #A 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

I'm working in the "new class builder" [1]. It automatically propagates this format change to the subclasses, instead of raising the error like the current class builder does. ie, the class B becomes variable when A becomes variable.

Do you agree?


What happens if a subclass was already variable but not simple variable, like byte or words?  they will be changed?

 


On Tue, Apr 23, 2013 at 2:05 PM, Martin Dias <[hidden email]> wrote:
Hi,

In:

Object 
subclass: #A
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

(Smalltalk at: #A) 
subclass: #B 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

Object 
variableSubclass: #A 
instanceVariableNames: '' 
classVariableNames: ''
poolDictionaries: '' 
category: 'Unclassified'.

---> why do we raise the error "B cannot be recompiled"?

what's the problem with reformatting subclasses automatically?

best regards,
Martin







--
Mariano
http://marianopeck.wordpress.com