293
293
% - Specify that it is an error for a concrete class with no non-trivial
294
294
% \code{noSuchMethod} to not have a concrete declaration for some member
295
295
% in its interface, or to have one which is not a correct override.
296
- % - Use \ref{bindingActualsToFormals } in 3 locations, eliminating 2 extra
296
+ % - Use \ref{bindingFormalsToActuals } in 3 locations, eliminating 2 extra
297
297
% copies of nearly the same text.
298
- % - Add figure in \ref{bindingActualsToFormals } for improved readability.
298
+ % - Add figure in \ref{bindingFormalsToActuals } for improved readability.
299
299
% - Introduce a notion of lookup which is needed for superinvocations.
300
300
% - Use new lookup concept to simplify specification of getter, setter, method
301
301
% lookup.
302
302
% - Introduce several `Case<SomeTopic>` markers in order to improve
303
303
% readability.
304
304
% - Reorganize several sections to specify static analysis first and then
305
305
% dynamic semantics; clarify many details along the way. The sections are:
306
- % \ref{variables}, \ref{new}, \ref{const}, \ref{bindingActualsToFormals },
306
+ % \ref{variables}, \ref{new}, \ref{const}, \ref{bindingFormalsToActuals },
307
307
% \ref{unqualifiedInvocation}, \ref{functionExpressionInvocation},
308
308
% \ref{superInvocations}, \ref{assignment}, \ref{compoundAssignment},
309
309
% \ref{localVariableDeclaration}, and \ref{return}.
@@ -1743,7 +1743,7 @@ \subsection{Implicitly Induced Getters and Setters}
1743
1743
and in which environment
1744
1744
(p.\,\pageref{executionOfGenerativeConstructors},
1745
1745
\ref{localVariableDeclaration},
1746
- \ref{bindingActualsToFormals }).%
1746
+ \ref{bindingFormalsToActuals }).%
1747
1747
}
1748
1748
1749
1749
\commentary{%
@@ -3482,7 +3482,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3482
3482
because the actual argument fails to satisfy a type check,
3483
3483
but that situation will give rise to a dynamic type error
3484
3484
rather than a repeated attempt to invoke \code{noSuchMethod}
3485
- (\ref{bindingActualsToFormals }).
3485
+ (\ref{bindingFormalsToActuals }).
3486
3486
Here is an example where a dynamic type error occurs because
3487
3487
an attempt is made to pass an \code{Invocation},
3488
3488
and the type of the parameter is \code{Never}:%
@@ -4477,7 +4477,7 @@ \subsubsection{Generative Constructors}
4477
4477
It is a \Error{compile-time error} if class $S$ does not declare
4478
4478
a generative constructor named $S$ (respectively \code{$S$.\id}).
4479
4479
Otherwise, the static analysis of $s$ is performed
4480
- as specified in Section~\ref{bindingActualsToFormals },
4480
+ as specified in Section~\ref{bindingFormalsToActuals },
4481
4481
as if \code{\SUPER} respectively \code{\SUPER.\id}
4482
4482
had had the function type of the denoted constructor,
4483
4483
%% TODO(eernst): The following is very imprecise, it just serves to remember
@@ -6729,8 +6729,8 @@ \subsection{Explicit Invocation of an Instance Member of an Extension}
6729
6729
Let $m$ be the member of $E$ that has the name $n$.
6730
6730
Evaluation of $i$ proceeds by evaluating
6731
6731
$e$ to an object $o$,
6732
- evaluating and binding the actual arguments to the formal parameters
6733
- (\ref{bindingActualsToFormals }),
6732
+ evaluating the actual arguments and binding the formal parameters to them
6733
+ (\ref{bindingFormalsToActuals }),
6734
6734
and finally executing $m$
6735
6735
in a binding environment where \List{X}{1}{k} are bound to \List{t}{1}{k},
6736
6736
\THIS{} is bound to $o$,
@@ -13413,8 +13413,8 @@ \subsubsection{Actual Argument List Evaluation}
13413
13413
}
13414
13414
13415
13415
13416
- \subsubsection{Binding Actuals to Formals }
13417
- \LMLabel{bindingActualsToFormals }
13416
+ \subsubsection{Binding Formals to Actuals }
13417
+ \LMLabel{bindingFormalsToActuals }
13418
13418
13419
13419
\commentary{%
13420
13420
In the following, the non-generic case is covered implicitly:
@@ -13633,7 +13633,7 @@ \subsubsection{Binding Actuals to Formals}
13633
13633
and let $p_{h+1}, \ldots, p_{h+k}$ be the optional parameters declared by $f$.
13634
13634
13635
13635
\LMHash{}%
13636
- An evaluated actual argument part
13636
+ With a given evaluated actual argument part
13637
13637
13638
13638
\noindent
13639
13639
\code{<\List{t}{1}{r}>(\ArgumentList{o}{m}{q}{l})}
@@ -13645,7 +13645,7 @@ \subsubsection{Binding Actuals to Formals}
13645
13645
\code{<\TypeArgumentListStd>(\ArgumentList{a}{m}{q}{l})}
13646
13646
13647
13647
\noindent
13648
- is bound to the formal type parameters and formal parameters of $f$ as follows:
13648
+ the formal type parameters and formal parameters of $f$ are bound as follows:
13649
13649
13650
13650
\LMHash{}%
13651
13651
% Passing a wrong number of actual type arguments.
@@ -13902,7 +13902,7 @@ \subsubsection{Function Expression Invocation}
13902
13902
13903
13903
\LMHash{}%
13904
13904
Otherwise, the static analysis of $i$ is performed as specified
13905
- in Section~\ref{bindingActualsToFormals },
13905
+ in Section~\ref{bindingFormalsToActuals },
13906
13906
using $F$ as the static type of the invoked function,
13907
13907
and the static type of $i$ is as specified there.
13908
13908
@@ -13921,8 +13921,8 @@ \subsubsection{Function Expression Invocation}
13921
13921
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
13922
13922
13923
13923
\noindent
13924
- is evaluated by binding actuals to formals
13925
- as specified in Section~\ref{bindingActualsToFormals },
13924
+ is evaluated by binding formals to actuals
13925
+ as specified in Section~\ref{bindingFormalsToActuals },
13926
13926
and executing the body of $f$ with those bindings;
13927
13927
the returned result is then the result of evaluating $i$.
13928
13928
@@ -14025,9 +14025,9 @@ \subsection{Function Closurization}
14025
14025
}
14026
14026
14027
14027
\LMHash{}%
14028
- An invocation of $o$ with a given argument list will bind actuals to formals
14028
+ An invocation of $o$ with a given argument list will bind formals to actuals
14029
14029
in the same way as an invocation of $f$
14030
- (\ref{bindingActualsToFormals }),
14030
+ (\ref{bindingFormalsToActuals }),
14031
14031
and then execute the body of $f$
14032
14032
in the captured scope amended with the bound parameter scope,
14033
14033
yielding the same completion
@@ -14122,7 +14122,7 @@ \subsection{Generic Function Instantiation}
14122
14122
\ref{initializerLists},
14123
14123
\ref{new},
14124
14124
\ref{const},
14125
- \ref{bindingActualsToFormals },
14125
+ \ref{bindingFormalsToActuals },
14126
14126
\ref{assignment},
14127
14127
\ref{localVariableDeclaration},
14128
14128
\ref{switch},
@@ -14744,7 +14744,7 @@ \subsubsection{Ordinary Invocation}
14744
14744
14745
14745
\LMHash{}%
14746
14746
The static analysis of $i$ is then performed
14747
- as specified in Section~\ref{bindingActualsToFormals },
14747
+ as specified in Section~\ref{bindingFormalsToActuals },
14748
14748
considering $F$ to be the static type of the function to call.
14749
14749
The static type of $i$ is as specified there.
14750
14750
@@ -14762,8 +14762,8 @@ \subsubsection{Ordinary Invocation}
14762
14762
\LMHash{}%
14763
14763
If the denoted member of $i$ is a static method,
14764
14764
let $f$ be the function declared by that member.
14765
- The binding of actual arguments to formal parameters is performed
14766
- as specified in Section~\ref{bindingActualsToFormals }.
14765
+ The binding of formal parameters to actual arguments is performed
14766
+ as specified in Section~\ref{bindingFormalsToActuals }.
14767
14767
The body of $f$ is then executed with respect to the bindings
14768
14768
that resulted from the evaluation of the argument part.
14769
14769
The value of $i$ is the object returned by the execution of $f$'s body.
@@ -14895,7 +14895,7 @@ \subsubsection{Ordinary Invocation}
14895
14895
14896
14896
\LMHash{}%
14897
14897
Otherwise, the static analysis of $i$ is performed
14898
- as specified in Section~\ref{bindingActualsToFormals },
14898
+ as specified in Section~\ref{bindingFormalsToActuals },
14899
14899
considering $F$ to be the static type of the function to call,
14900
14900
and the static type of $i$ is as specified there,
14901
14901
except that invocations of methods named \code{remainder}
@@ -15018,8 +15018,8 @@ \subsubsection{Ordinary Invocation}
15018
15018
15019
15019
\LMHash{}%
15020
15020
If the method lookup succeeded,
15021
- the binding of actual arguments to formal parameters is performed
15022
- as specified in Section~\ref{bindingActualsToFormals }.
15021
+ the binding of formal parameters to actual arguments is performed
15022
+ as specified in Section~\ref{bindingFormalsToActuals }.
15023
15023
The body of $f$ is then executed with respect to the bindings
15024
15024
that resulted from the evaluation of the argument list,
15025
15025
and with \THIS{} bound to $o$.
@@ -15258,7 +15258,7 @@ \subsubsection{Superinvocations}
15258
15258
Otherwise
15259
15259
\commentary{(when one of the lookups succeeded)},
15260
15260
the static analysis of $i$ is performed
15261
- as specified in Section~\ref{bindingActualsToFormals },
15261
+ as specified in Section~\ref{bindingFormalsToActuals },
15262
15262
considering the function to have static type $F$,
15263
15263
and the static type of $i$ is as specified there.
15264
15264
@@ -15316,9 +15316,9 @@ \subsubsection{Superinvocations}
15316
15316
}
15317
15317
15318
15318
\LMHash{}%
15319
- Otherwise perform the binding of actual arguments to formal parameters for
15319
+ Otherwise perform the binding of formal parameters to actual arguments for
15320
15320
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
15321
- as specified in Section~\ref{bindingActualsToFormals },
15321
+ as specified in Section~\ref{bindingFormalsToActuals },
15322
15322
and execute the body of $f$ with said bindings
15323
15323
plus a binding of \THIS{} to $o$.
15324
15324
The result returned by $f$ is then the result of evaluating $i$.
@@ -16055,7 +16055,7 @@ \subsubsection{Generic Method Instantiation}
16055
16055
\ref{initializerLists},
16056
16056
\ref{new},
16057
16057
\ref{const},
16058
- \ref{bindingActualsToFormals },
16058
+ \ref{bindingFormalsToActuals },
16059
16059
\ref{assignment},
16060
16060
\ref{localVariableDeclaration},
16061
16061
\ref{switch},
@@ -22462,7 +22462,7 @@ \subsection{Dynamic Type System}
22462
22462
\ref{redirectingFactoryConstructors},
22463
22463
\ref{lists},
22464
22464
\ref{new},
22465
- \ref{bindingActualsToFormals },
22465
+ \ref{bindingFormalsToActuals },
22466
22466
\ref{ordinaryInvocation},
22467
22467
\ref{assignment},
22468
22468
\ref{typeCast},
0 commit comments