Re: [Pharo-dev] looking for classbuilder API

2017-01-21 Thread stepharong

thanks
marcus this is good that we hide such ugly API ccIndex:

Stef

On Thu, 19 Jan 2017 09:34:42 +0100, denker  wrote:

There is #newAnonymousSubclass for creating a subclass from the current  
class.


It seems that this is what this code is trying to do.

Marcus


On 15 Jan 2017, at 09:40, stepharong  wrote:

HI

I need to migrate

pvtNewSubclass

| newClass |
newClass := Behavior new.
newClass superclass: self.
	newClass setFormat: (ClassBuilder new computeFormat: #normal instSize:  
0 forSuper: self ccIndex: 0).

^newClass

and I'm looking at how to express (ClassBuilder new computeFormat:  
#normal instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.


Stef







--
Using Opera's mail client: http://www.opera.com/mail/



Re: [Pharo-dev] looking for classbuilder API

2017-01-19 Thread denker
There is #newAnonymousSubclass for creating a subclass from the current class.

It seems that this is what this code is trying to do.

Marcus

> On 15 Jan 2017, at 09:40, stepharong  wrote:
> 
> HI
> 
> I need to migrate
> 
> pvtNewSubclass
> 
>   | newClass |
>   newClass := Behavior new.
>   newClass superclass: self.
>   newClass setFormat: (ClassBuilder new computeFormat: #normal instSize: 
> 0 forSuper: self ccIndex: 0).
>   ^newClass
> 
> and I'm looking at how to express (ClassBuilder new computeFormat: #normal 
> instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.
> 
> Stef
> 




Re: [Pharo-dev] looking for classbuilder API

2017-01-18 Thread Stephane Ducasse
tx I will try.

On Sun, Jan 15, 2017 at 10:38 AM, Nicolai Hess 
wrote:

> maybe :
>
> newClass setFormat: self classLayout format.
>
>
> 2017-01-15 9:40 GMT+01:00 stepharong :
>
>> HI
>>
>> I need to migrate
>>
>> pvtNewSubclass
>>
>> | newClass |
>> newClass := Behavior new.
>> newClass superclass: self.
>> newClass setFormat: (ClassBuilder new computeFormat: #normal
>> instSize: 0 forSuper: self ccIndex: 0).
>> ^newClass
>>
>> and I'm looking at how to express (ClassBuilder new computeFormat:
>> #normal instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.
>>
>> Stef
>>
>>
>


Re: [Pharo-dev] looking for classbuilder API

2017-01-15 Thread Nicolai Hess
maybe :

newClass setFormat: self classLayout format.


2017-01-15 9:40 GMT+01:00 stepharong :

> HI
>
> I need to migrate
>
> pvtNewSubclass
>
> | newClass |
> newClass := Behavior new.
> newClass superclass: self.
> newClass setFormat: (ClassBuilder new computeFormat: #normal
> instSize: 0 forSuper: self ccIndex: 0).
> ^newClass
>
> and I'm looking at how to express (ClassBuilder new computeFormat: #normal
> instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.
>
> Stef
>
>


[Pharo-dev] looking for classbuilder API

2017-01-15 Thread stepharong

HI

I need to migrate

pvtNewSubclass

| newClass |
newClass := Behavior new.
newClass superclass: self.
	newClass setFormat: (ClassBuilder new computeFormat: #normal instSize: 0  
forSuper: self ccIndex: 0).

^newClass

and I'm looking at how to express (ClassBuilder new computeFormat: #normal  
instSize: 0 forSuper: self ccIndex: 0).  in Pharo 60.


Stef