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
maybe : newClass setFormat: self classLayout format. 2017-01-15 9:40 GMT+01:00 stepharong <stepharong@free.fr>:
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
tx I will try. On Sun, Jan 15, 2017 at 10:38 AM, Nicolai Hess <nicolaihess@gmail.com> wrote:
maybe :
newClass setFormat: self classLayout format.
2017-01-15 9:40 GMT+01:00 stepharong <stepharong@free.fr>:
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
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 <stepharong@free.fr> 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
thanks marcus this is good that we hide such ugly API ccIndex: Stef On Thu, 19 Jan 2017 09:34:42 +0100, denker <marcus.denker@inria.fr> 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 <stepharong@free.fr> 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/
participants (4)
-
denker -
Nicolai Hess -
Stephane Ducasse -
stepharong