Skip to content

Commit

Permalink
Improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
eernstg committed Dec 15, 2023
1 parent e605be2 commit db1018c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
% version of the language which will actually be specified by the next stable
% release of this document.
%
% Dec 2023
% - Specify in which situations it is an error to declare an initializing
% formal parameter.
%
% Mar 2023
% - Clarify how line breaks are handled in a multi-line string literal. Rename
% the lexical token NEWLINE to LINE\_BREAK (clarifying that it is not `\n`).
Expand Down Expand Up @@ -3654,10 +3658,10 @@ \subsubsection{Generative Constructors}

\LMHash{}%
It is a compile-time error for an initializing formal parameter
to occur in any function which is not
a non-redirecting, non-external, generative constructor
(\ref{requiredFormals}).
\commentary{This implies that there is always an enclosing class. }
to occur in any function which is not a generative constructor.
Also, it is a compile-time error for an initializing formal parameter
to occur in a redirecting and in an external constructor.
\commentary{In particuar, there is always an enclosing class.}

\LMHash{}%
Assume that $p$ is a declaration of an initializing formal parameter named \id.
Expand Down

0 comments on commit db1018c

Please sign in to comment.