[squeak-dev] Re: Instance variable access in superclasses.

Matthew Fulmer tapplek at gmail.com
Wed Nov 26 15:16:44 UTC 2008


On Tue, Nov 25, 2008 at 10:47:12PM -0800, Andreas Raab wrote:
> Keith Hodges wrote:
> > Installer squeaksource project: 'SystemEditor'; install:
> > 'SystemEditor-Core'; install: 'SystemEditor-Squeak'.
> > 
> > http://installer.pbwiki.com/SystemEditor
> > 
> > I just added it to the development package universe, along with
> > Monticello15 and Monticello16. MC1.6 uses SystemEditor and I love it!
> 
> Thanks. And do you by any chance have a simple example, say adding an 
> iVar to an existing class?

The syntax to do that is:

ed := SystemEditor new.
(ed at: #Morph) addInstVarName: #foo.
ed commitWithProgress.

Adding an instance variable to Morph used to work, but now it
runs out of memory :P

-- 
Matthew Fulmer -- http://mtfulmer.wordpress.com/



More information about the Squeak-dev mailing list