[Grace-core] Inheritance and object initialisation
Kim Bruce
kim at cs.pomona.edu
Mon Jul 16 00:43:20 PDT 2012
> > > Or:
> > > var tmp
> > > method aCreator {
> > > object {
> > > def x = 1
> > > method foo { "hello" }
> > > tmp := { foo }
> > > }
> > > }
> > > def b = object {
> > > inherits aCreator
> > > }
> > > What is tmp.apply?
> >
> > "hello" -- is there any other possibility?
> There was meant to be an override of "foo" in b, along the lines of the one returning "world" in the others.
> -Michael
>
Then I'll have to go with "world" again.
Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailhost.cecs.pdx.edu/mailman/private/grace-core/attachments/20120716/4675c643/attachment.html>
More information about the Grace-core
mailing list