Re: Why Single Inheritance Restriction?
Michael Sperber 20 Sep 2005 15:53 UTC
Richard Kelsey <xxxxxx@s48.org> writes:
> From: Michael Sperber <xxxxxx@informatik.uni-tuebingen.de>
> Cc: srfi-76@srfi.schemers.org
>
> Richard Kelsey <xxxxxx@s48.org> writes:
>
> > In some particular order?
>
> No---at least the current draft doesn't specify one, keeping with
> Scheme's tradition here.
>
> Actually, it does give an order. "Parent init expressions, if any,
> are evaluated before child init expressions."
Yes, but there's no order specified within, I think.
> It depends on whether or not the 'init' expressions count
> as initializing the records.
Yes. And every field has a defined <init expression>, whether
implicit or explicit.
> By the way, in what context are the <constructor argument>s in
>
> (parent <parent name> <constructor argument> *)
>
> evaluated? Specifically, do they have any access to the values
> passed to the subtype constructor?
Not directly, no. The context is that of the <formals> list. I guess
this should be clarified.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla