Re: [Pharo-dev] looking for classbuilder API
thanks marcus this is good that we hide such ugly API ccIndex: Stef On Thu, 19 Jan 2017 09:34:42 +0100, denkerwrote: 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
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, stepharongwrote: > > 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
tx I will try. On Sun, Jan 15, 2017 at 10:38 AM, Nicolai Hesswrote: > 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
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
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