Pull up #classPool?

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

Pull up #classPool?

Christoph Thiede

Hi all,


Class, Metaclass and TraitDescription all implement #classPool. Would this be a good reason to implement #classPool on ClassDescription, with #subclassResponsibility?


Best,

Christoph



Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: Pull up #classPool?

Christoph Thiede

Proposal: #classVarNamed:

(Sorry for doublepost)


ClassDescription >> classVarNamed: aString

  ^ self classPool at: aString

ClassDescription >> classPool
  ^ self subclassResponsibility

Not sending this directly into Inbox because I'm not sure whether this would be the right way to implement it.
What should [RectangleMorph classVarNamed: #HaloForAll] return? Error or Boolean?

Best,
Christoph



Von: Squeak-dev <[hidden email]> im Auftrag von Thiede, Christoph
Gesendet: Sonntag, 16. Februar 2020 16:16 Uhr
An: Squeak Dev
Betreff: [squeak-dev] Pull up #classPool?
 

Hi all,


Class, Metaclass and TraitDescription all implement #classPool. Would this be a good reason to implement #classPool on ClassDescription, with #subclassResponsibility?


Best,

Christoph



Carpe Squeak!