[Grace-core] Position of "inherits" clause

Kim Bruce kbbruce47 at gmail.com
Tue Jun 16 16:40:42 PDT 2015


Is the inherits clause restricted to be the first clause in a class or
object definition?  Minigrace allows it anywhere and the spec doesn't
mention this, but the grammar at the end of the spec seems to require the
inherits clause to only occur as the first statement.

The reason for the restriction is generally to make sure everything in the
superclass is initialized before it might be used in the subclass.  However
it does occasionally get in the way and it doesn't guarantee everything
will in fact be initialized.

I'm fine with restricting it to be the first statement (or not), but if we
do mean that then we should write it down.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailhost.cecs.pdx.edu/pipermail/grace-core/attachments/20150616/f763fa40/attachment.html>


More information about the Grace-core mailing list