Skip to content

Commit

Permalink
Remove obsolete reference to "mixin composition" from section Supercl…
Browse files Browse the repository at this point in the history
…asses
  • Loading branch information
eernstg committed Sep 29, 2023
1 parent 7aea1e0 commit bb8e6dc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4970,16 +4970,23 @@ \subsection{Superclasses}
%% superclass can be declared in that scope).

\LMHash{}%
The superclass $S'$ of a class $C$ whose declaration has a with clause
\code{\WITH{} $M_1, \ldots,\ M_k$}
and an extends clause
\code{\EXTENDS{} $S$}
is the abstract class obtained by application of
mixin composition (\ref{mixins}) $M_k* \cdots * M_1$ to $S$.
The name $S'$ is a fresh identifier.
The superclass $S'$ of a class $C$ whose declaration has an extends clause
\code{\EXTENDS\,\,$S$}
and a with clause
\code{\WITH\,\,$M_1, \ldots,\ M_k$}
is the following class
(\ref{mixinClasses}),
where the name $N$ is a fresh identifier:

\begin{normativeDartCode}
\ABSTRACT \CLASS{} $N$ = $S$ \WITH{} $M_1$, \ldots, $M_k$;
\end{normativeDartCode}

\LMHash{}%
If no \WITH{} clause is specified then the \EXTENDS{} clause of
a class $C$ specifies its superclass.
If no \EXTENDS{} clause is specified, then either:

\begin{itemize}
\item $C$ is \code{Object}, which has no superclass. OR
\item Class $C$ is deemed to have an \EXTENDS{} clause of the form
Expand Down

0 comments on commit bb8e6dc

Please sign in to comment.