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
@@ -6733,8 +6733,8 @@ \subsection{Explicit Invocation of an Instance Member of an Extension}
6733
6733
Let $m$ be the member of $E$ that has the name $n$.
6734
6734
Evaluation of $i$ proceeds by evaluating
6735
6735
$e$ to an object $o$,
6736
- evaluating and binding the actual arguments to the formal parameters
6737
- (\ref{bindingActualsToFormals }),
6736
+ evaluating the actual arguments and binding the formal parameters to them
6737
+ (\ref{bindingFormalsToActuals }),
6738
6738
and finally executing $m$
6739
6739
in a binding environment where \List{X}{1}{k} are bound to \List{t}{1}{k},
6740
6740
\THIS{} is bound to $o$,
@@ -13417,8 +13417,8 @@ \subsubsection{Actual Argument List Evaluation}
13417
13417
}
13418
13418
13419
13419
13420
- \subsubsection{Binding Actuals to Formals }
13421
- \LMLabel{bindingActualsToFormals }
13420
+ \subsubsection{Binding Formals to Actuals }
13421
+ \LMLabel{bindingFormalsToActuals }
13422
13422
13423
13423
\commentary{%
13424
13424
In the following, the non-generic case is covered implicitly:
@@ -13637,7 +13637,7 @@ \subsubsection{Binding Actuals to Formals}
13637
13637
and let $p_{h+1}, \ldots, p_{h+k}$ be the optional parameters declared by $f$.
13638
13638
13639
13639
\LMHash{}%
13640
- An evaluated actual argument part
13640
+ With a given evaluated actual argument part
13641
13641
13642
13642
\noindent
13643
13643
\code{<\List{t}{1}{r}>(\ArgumentList{o}{m}{q}{l})}
@@ -13649,7 +13649,7 @@ \subsubsection{Binding Actuals to Formals}
13649
13649
\code{<\TypeArgumentListStd>(\ArgumentList{a}{m}{q}{l})}
13650
13650
13651
13651
\noindent
13652
- is bound to the formal type parameters and formal parameters of $f$ as follows:
13652
+ the formal type parameters and formal parameters of $f$ are bound as follows:
13653
13653
13654
13654
\LMHash{}%
13655
13655
% Passing a wrong number of actual type arguments.
@@ -13906,7 +13906,7 @@ \subsubsection{Function Expression Invocation}
13906
13906
13907
13907
\LMHash{}%
13908
13908
Otherwise, the static analysis of $i$ is performed as specified
13909
- in Section~\ref{bindingActualsToFormals },
13909
+ in Section~\ref{bindingFormalsToActuals },
13910
13910
using $F$ as the static type of the invoked function,
13911
13911
and the static type of $i$ is as specified there.
13912
13912
@@ -13925,8 +13925,8 @@ \subsubsection{Function Expression Invocation}
13925
13925
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
13926
13926
13927
13927
\noindent
13928
- is evaluated by binding actuals to formals
13929
- as specified in Section~\ref{bindingActualsToFormals },
13928
+ is evaluated by binding formals to actuals
13929
+ as specified in Section~\ref{bindingFormalsToActuals },
13930
13930
and executing the body of $f$ with those bindings;
13931
13931
the returned result is then the result of evaluating $i$.
13932
13932
@@ -14029,9 +14029,9 @@ \subsection{Function Closurization}
14029
14029
}
14030
14030
14031
14031
\LMHash{}%
14032
- An invocation of $o$ with a given argument list will bind actuals to formals
14032
+ An invocation of $o$ with a given argument list will bind formals to actuals
14033
14033
in the same way as an invocation of $f$
14034
- (\ref{bindingActualsToFormals }),
14034
+ (\ref{bindingFormalsToActuals }),
14035
14035
and then execute the body of $f$
14036
14036
in the captured scope amended with the bound parameter scope,
14037
14037
yielding the same completion
@@ -14126,7 +14126,7 @@ \subsection{Generic Function Instantiation}
14126
14126
\ref{initializerLists},
14127
14127
\ref{new},
14128
14128
\ref{const},
14129
- \ref{bindingActualsToFormals },
14129
+ \ref{bindingFormalsToActuals },
14130
14130
\ref{assignment},
14131
14131
\ref{localVariableDeclaration},
14132
14132
\ref{switch},
@@ -14748,7 +14748,7 @@ \subsubsection{Ordinary Invocation}
14748
14748
14749
14749
\LMHash{}%
14750
14750
The static analysis of $i$ is then performed
14751
- as specified in Section~\ref{bindingActualsToFormals },
14751
+ as specified in Section~\ref{bindingFormalsToActuals },
14752
14752
considering $F$ to be the static type of the function to call.
14753
14753
The static type of $i$ is as specified there.
14754
14754
@@ -14766,8 +14766,8 @@ \subsubsection{Ordinary Invocation}
14766
14766
\LMHash{}%
14767
14767
If the denoted member of $i$ is a static method,
14768
14768
let $f$ be the function declared by that member.
14769
- The binding of actual arguments to formal parameters is performed
14770
- as specified in Section~\ref{bindingActualsToFormals }.
14769
+ The binding of formal parameters to actual arguments is performed
14770
+ as specified in Section~\ref{bindingFormalsToActuals }.
14771
14771
The body of $f$ is then executed with respect to the bindings
14772
14772
that resulted from the evaluation of the argument part.
14773
14773
The value of $i$ is the object returned by the execution of $f$'s body.
@@ -14899,7 +14899,7 @@ \subsubsection{Ordinary Invocation}
14899
14899
14900
14900
\LMHash{}%
14901
14901
Otherwise, the static analysis of $i$ is performed
14902
- as specified in Section~\ref{bindingActualsToFormals },
14902
+ as specified in Section~\ref{bindingFormalsToActuals },
14903
14903
considering $F$ to be the static type of the function to call,
14904
14904
and the static type of $i$ is as specified there,
14905
14905
except that invocations of methods named \code{remainder}
@@ -15022,8 +15022,8 @@ \subsubsection{Ordinary Invocation}
15022
15022
15023
15023
\LMHash{}%
15024
15024
If the method lookup succeeded,
15025
- the binding of actual arguments to formal parameters is performed
15026
- as specified in Section~\ref{bindingActualsToFormals }.
15025
+ the binding of formal parameters to actual arguments is performed
15026
+ as specified in Section~\ref{bindingFormalsToActuals }.
15027
15027
The body of $f$ is then executed with respect to the bindings
15028
15028
that resulted from the evaluation of the argument list,
15029
15029
and with \THIS{} bound to $o$.
@@ -15262,7 +15262,7 @@ \subsubsection{Superinvocations}
15262
15262
Otherwise
15263
15263
\commentary{(when one of the lookups succeeded)},
15264
15264
the static analysis of $i$ is performed
15265
- as specified in Section~\ref{bindingActualsToFormals },
15265
+ as specified in Section~\ref{bindingFormalsToActuals },
15266
15266
considering the function to have static type $F$,
15267
15267
and the static type of $i$ is as specified there.
15268
15268
@@ -15320,9 +15320,9 @@ \subsubsection{Superinvocations}
15320
15320
}
15321
15321
15322
15322
\LMHash{}%
15323
- Otherwise perform the binding of actual arguments to formal parameters for
15323
+ Otherwise perform the binding of formal parameters to actual arguments for
15324
15324
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
15325
- as specified in Section~\ref{bindingActualsToFormals },
15325
+ as specified in Section~\ref{bindingFormalsToActuals },
15326
15326
and execute the body of $f$ with said bindings
15327
15327
plus a binding of \THIS{} to $o$.
15328
15328
The result returned by $f$ is then the result of evaluating $i$.
@@ -16059,7 +16059,7 @@ \subsubsection{Generic Method Instantiation}
16059
16059
\ref{initializerLists},
16060
16060
\ref{new},
16061
16061
\ref{const},
16062
- \ref{bindingActualsToFormals },
16062
+ \ref{bindingFormalsToActuals },
16063
16063
\ref{assignment},
16064
16064
\ref{localVariableDeclaration},
16065
16065
\ref{switch},
@@ -22466,7 +22466,7 @@ \subsection{Dynamic Type System}
22466
22466
\ref{redirectingFactoryConstructors},
22467
22467
\ref{lists},
22468
22468
\ref{new},
22469
- \ref{bindingActualsToFormals },
22469
+ \ref{bindingFormalsToActuals },
22470
22470
\ref{ordinaryInvocation},
22471
22471
\ref{assignment},
22472
22472
\ref{typeCast},
0 commit comments