297
297
% - Specify that it is an error for a concrete class with no non-trivial
298
298
% \code{noSuchMethod} to not have a concrete declaration for some member
299
299
% in its interface, or to have one which is not a correct override.
300
- % - Use \ref{bindingActualsToFormals } in 3 locations, eliminating 2 extra
300
+ % - Use \ref{bindingFormalsToActuals } in 3 locations, eliminating 2 extra
301
301
% copies of nearly the same text.
302
- % - Add figure in \ref{bindingActualsToFormals } for improved readability.
302
+ % - Add figure in \ref{bindingFormalsToActuals } for improved readability.
303
303
% - Introduce a notion of lookup which is needed for superinvocations.
304
304
% - Use new lookup concept to simplify specification of getter, setter, method
305
305
% lookup.
306
306
% - Introduce several `Case<SomeTopic>` markers in order to improve
307
307
% readability.
308
308
% - Reorganize several sections to specify static analysis first and then
309
309
% dynamic semantics; clarify many details along the way. The sections are:
310
- % \ref{variables}, \ref{new}, \ref{const}, \ref{bindingActualsToFormals },
310
+ % \ref{variables}, \ref{new}, \ref{const}, \ref{bindingFormalsToActuals },
311
311
% \ref{unqualifiedInvocation}, \ref{functionExpressionInvocation},
312
312
% \ref{superInvocations}, \ref{assignment}, \ref{compoundAssignment},
313
313
% \ref{localVariableDeclaration}, and \ref{return}.
@@ -1747,7 +1747,7 @@ \subsection{Implicitly Induced Getters and Setters}
1747
1747
and in which environment
1748
1748
(p.\,\pageref{executionOfGenerativeConstructors},
1749
1749
\ref{localVariableDeclaration},
1750
- \ref{bindingActualsToFormals }).%
1750
+ \ref{bindingFormalsToActuals }).%
1751
1751
}
1752
1752
1753
1753
\commentary{%
@@ -3486,7 +3486,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3486
3486
because the actual argument fails to satisfy a type check,
3487
3487
but that situation will give rise to a dynamic type error
3488
3488
rather than a repeated attempt to invoke \code{noSuchMethod}
3489
- (\ref{bindingActualsToFormals }).
3489
+ (\ref{bindingFormalsToActuals }).
3490
3490
Here is an example where a dynamic type error occurs because
3491
3491
an attempt is made to pass an \code{Invocation},
3492
3492
and the type of the parameter is \code{Never}:%
@@ -4481,7 +4481,7 @@ \subsubsection{Generative Constructors}
4481
4481
It is a \Error{compile-time error} if class $S$ does not declare
4482
4482
a generative constructor named $S$ (respectively \code{$S$.\id}).
4483
4483
Otherwise, the static analysis of $s$ is performed
4484
- as specified in Section~\ref{bindingActualsToFormals },
4484
+ as specified in Section~\ref{bindingFormalsToActuals },
4485
4485
as if \code{\SUPER} respectively \code{\SUPER.\id}
4486
4486
had had the function type of the denoted constructor,
4487
4487
%% TODO(eernst): The following is very imprecise, it just serves to remember
@@ -6745,8 +6745,8 @@ \subsection{Explicit Invocation of an Instance Member of an Extension}
6745
6745
Let $m$ be the member of $E$ that has the name $n$.
6746
6746
Evaluation of $i$ proceeds by evaluating
6747
6747
$e$ to an object $o$,
6748
- evaluating and binding the actual arguments to the formal parameters
6749
- (\ref{bindingActualsToFormals }),
6748
+ evaluating the actual arguments and binding the formal parameters to them
6749
+ (\ref{bindingFormalsToActuals }),
6750
6750
and finally executing $m$
6751
6751
in a binding environment where \List{X}{1}{k} are bound to \List{t}{1}{k},
6752
6752
\THIS{} is bound to $o$,
@@ -13429,8 +13429,8 @@ \subsubsection{Actual Argument List Evaluation}
13429
13429
}
13430
13430
13431
13431
13432
- \subsubsection{Binding Actuals to Formals }
13433
- \LMLabel{bindingActualsToFormals }
13432
+ \subsubsection{Binding Formals to Actuals }
13433
+ \LMLabel{bindingFormalsToActuals }
13434
13434
13435
13435
\commentary{%
13436
13436
In the following, the non-generic case is covered implicitly:
@@ -13649,7 +13649,7 @@ \subsubsection{Binding Actuals to Formals}
13649
13649
and let $p_{h+1}, \ldots, p_{h+k}$ be the optional parameters declared by $f$.
13650
13650
13651
13651
\LMHash{}%
13652
- An evaluated actual argument part
13652
+ With a given evaluated actual argument part
13653
13653
13654
13654
\noindent
13655
13655
\code{<\List{t}{1}{r}>(\ArgumentList{o}{m}{q}{l})}
@@ -13661,7 +13661,7 @@ \subsubsection{Binding Actuals to Formals}
13661
13661
\code{<\TypeArgumentListStd>(\ArgumentList{a}{m}{q}{l})}
13662
13662
13663
13663
\noindent
13664
- is bound to the formal type parameters and formal parameters of $f$ as follows:
13664
+ the formal type parameters and formal parameters of $f$ are bound as follows:
13665
13665
13666
13666
\LMHash{}%
13667
13667
% Passing a wrong number of actual type arguments.
@@ -13918,7 +13918,7 @@ \subsubsection{Function Expression Invocation}
13918
13918
13919
13919
\LMHash{}%
13920
13920
Otherwise, the static analysis of $i$ is performed as specified
13921
- in Section~\ref{bindingActualsToFormals },
13921
+ in Section~\ref{bindingFormalsToActuals },
13922
13922
using $F$ as the static type of the invoked function,
13923
13923
and the static type of $i$ is as specified there.
13924
13924
@@ -13937,8 +13937,8 @@ \subsubsection{Function Expression Invocation}
13937
13937
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
13938
13938
13939
13939
\noindent
13940
- is evaluated by binding actuals to formals
13941
- as specified in Section~\ref{bindingActualsToFormals },
13940
+ is evaluated by binding formals to actuals
13941
+ as specified in Section~\ref{bindingFormalsToActuals },
13942
13942
and executing the body of $f$ with those bindings;
13943
13943
the returned result is then the result of evaluating $i$.
13944
13944
@@ -14041,9 +14041,9 @@ \subsection{Function Closurization}
14041
14041
}
14042
14042
14043
14043
\LMHash{}%
14044
- An invocation of $o$ with a given argument list will bind actuals to formals
14044
+ An invocation of $o$ with a given argument list will bind formals to actuals
14045
14045
in the same way as an invocation of $f$
14046
- (\ref{bindingActualsToFormals }),
14046
+ (\ref{bindingFormalsToActuals }),
14047
14047
and then execute the body of $f$
14048
14048
in the captured scope amended with the bound parameter scope,
14049
14049
yielding the same completion
@@ -14138,7 +14138,7 @@ \subsection{Generic Function Instantiation}
14138
14138
\ref{initializerLists},
14139
14139
\ref{new},
14140
14140
\ref{const},
14141
- \ref{bindingActualsToFormals },
14141
+ \ref{bindingFormalsToActuals },
14142
14142
\ref{assignment},
14143
14143
\ref{localVariableDeclaration},
14144
14144
\ref{switch},
@@ -14760,7 +14760,7 @@ \subsubsection{Ordinary Invocation}
14760
14760
14761
14761
\LMHash{}%
14762
14762
The static analysis of $i$ is then performed
14763
- as specified in Section~\ref{bindingActualsToFormals },
14763
+ as specified in Section~\ref{bindingFormalsToActuals },
14764
14764
considering $F$ to be the static type of the function to call.
14765
14765
The static type of $i$ is as specified there.
14766
14766
@@ -14778,8 +14778,8 @@ \subsubsection{Ordinary Invocation}
14778
14778
\LMHash{}%
14779
14779
If the denoted member of $i$ is a static method,
14780
14780
let $f$ be the function declared by that member.
14781
- The binding of actual arguments to formal parameters is performed
14782
- as specified in Section~\ref{bindingActualsToFormals }.
14781
+ The binding of formal parameters to actual arguments is performed
14782
+ as specified in Section~\ref{bindingFormalsToActuals }.
14783
14783
The body of $f$ is then executed with respect to the bindings
14784
14784
that resulted from the evaluation of the argument part.
14785
14785
The value of $i$ is the object returned by the execution of $f$'s body.
@@ -14911,7 +14911,7 @@ \subsubsection{Ordinary Invocation}
14911
14911
14912
14912
\LMHash{}%
14913
14913
Otherwise, the static analysis of $i$ is performed
14914
- as specified in Section~\ref{bindingActualsToFormals },
14914
+ as specified in Section~\ref{bindingFormalsToActuals },
14915
14915
considering $F$ to be the static type of the function to call,
14916
14916
and the static type of $i$ is as specified there,
14917
14917
except that invocations of methods named \code{remainder}
@@ -15034,8 +15034,8 @@ \subsubsection{Ordinary Invocation}
15034
15034
15035
15035
\LMHash{}%
15036
15036
If the method lookup succeeded,
15037
- the binding of actual arguments to formal parameters is performed
15038
- as specified in Section~\ref{bindingActualsToFormals }.
15037
+ the binding of formal parameters to actual arguments is performed
15038
+ as specified in Section~\ref{bindingFormalsToActuals }.
15039
15039
The body of $f$ is then executed with respect to the bindings
15040
15040
that resulted from the evaluation of the argument list,
15041
15041
and with \THIS{} bound to $o$.
@@ -15274,7 +15274,7 @@ \subsubsection{Superinvocations}
15274
15274
Otherwise
15275
15275
\commentary{(when one of the lookups succeeded)},
15276
15276
the static analysis of $i$ is performed
15277
- as specified in Section~\ref{bindingActualsToFormals },
15277
+ as specified in Section~\ref{bindingFormalsToActuals },
15278
15278
considering the function to have static type $F$,
15279
15279
and the static type of $i$ is as specified there.
15280
15280
@@ -15332,9 +15332,9 @@ \subsubsection{Superinvocations}
15332
15332
}
15333
15333
15334
15334
\LMHash{}%
15335
- Otherwise perform the binding of actual arguments to formal parameters for
15335
+ Otherwise perform the binding of formal parameters to actual arguments for
15336
15336
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
15337
- as specified in Section~\ref{bindingActualsToFormals },
15337
+ as specified in Section~\ref{bindingFormalsToActuals },
15338
15338
and execute the body of $f$ with said bindings
15339
15339
plus a binding of \THIS{} to $o$.
15340
15340
The result returned by $f$ is then the result of evaluating $i$.
@@ -16071,7 +16071,7 @@ \subsubsection{Generic Method Instantiation}
16071
16071
\ref{initializerLists},
16072
16072
\ref{new},
16073
16073
\ref{const},
16074
- \ref{bindingActualsToFormals },
16074
+ \ref{bindingFormalsToActuals },
16075
16075
\ref{assignment},
16076
16076
\ref{localVariableDeclaration},
16077
16077
\ref{switch},
@@ -22478,7 +22478,7 @@ \subsection{Dynamic Type System}
22478
22478
\ref{redirectingFactoryConstructors},
22479
22479
\ref{lists},
22480
22480
\ref{new},
22481
- \ref{bindingActualsToFormals },
22481
+ \ref{bindingFormalsToActuals },
22482
22482
\ref{ordinaryInvocation},
22483
22483
\ref{assignment},
22484
22484
\ref{typeCast},
0 commit comments