Hi,

as we know in Smalltalk we use the concept of "messages" even to create new 
classes.

Beside the regular #subclass:instanceVariableNames:classVariableNames:category:
message there are other flavours and one even can implement such methods on his
own easily.

Just wondering:
Is it easily possible already that one can define (for instance for a common 
superclass)
that Nautilus displays the custom class creation message when a class is 
clicked:

Something like:

  HTMLTag 
     subclass: HTMLAnchorTag
     tagName: 'a'
     category: 'HTML-Markup'
        
  HTMLTag 
     subclass: HTMLFormTag
     tagName: 'form'
     category: 'HTML-Markup'

...

  Animal
     subclass: Cat
     genome: 'Felis catus'
     category: 'Pets'

I guess that would be highly useful for own custom DSL's and make modeling the 
real
world in standard Pharo tools like the browser even more attractive. 

Any comments, use cases or code?

Thanks
T.

Reply via email to