301
301
% - Specify that it is an error for a concrete class with no non-trivial
302
302
% \code{noSuchMethod} to not have a concrete declaration for some member
303
303
% in its interface, or to have one which is not a correct override.
304
- % - Use \ref{bindingActualsToFormals } in 3 locations, eliminating 2 extra
304
+ % - Use \ref{bindingFormalsToActuals } in 3 locations, eliminating 2 extra
305
305
% copies of nearly the same text.
306
- % - Add figure in \ref{bindingActualsToFormals } for improved readability.
306
+ % - Add figure in \ref{bindingFormalsToActuals } for improved readability.
307
307
% - Introduce a notion of lookup which is needed for superinvocations.
308
308
% - Use new lookup concept to simplify specification of getter, setter, method
309
309
% lookup.
310
310
% - Introduce several `Case<SomeTopic>` markers in order to improve
311
311
% readability.
312
312
% - Reorganize several sections to specify static analysis first and then
313
313
% dynamic semantics; clarify many details along the way. The sections are:
314
- % \ref{variables}, \ref{new}, \ref{const}, \ref{bindingActualsToFormals },
314
+ % \ref{variables}, \ref{new}, \ref{const}, \ref{bindingFormalsToActuals },
315
315
% \ref{unqualifiedInvocation}, \ref{functionExpressionInvocation},
316
316
% \ref{superInvocations}, \ref{assignment}, \ref{compoundAssignment},
317
317
% \ref{localVariableDeclaration}, and \ref{return}.
@@ -1751,7 +1751,7 @@ \subsection{Implicitly Induced Getters and Setters}
1751
1751
and in which environment
1752
1752
(p.\,\pageref{executionOfGenerativeConstructors},
1753
1753
\ref{localVariableDeclaration},
1754
- \ref{bindingActualsToFormals }).%
1754
+ \ref{bindingFormalsToActuals }).%
1755
1755
}
1756
1756
1757
1757
\commentary{%
@@ -3490,7 +3490,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3490
3490
because the actual argument fails to satisfy a type check,
3491
3491
but that situation will give rise to a dynamic type error
3492
3492
rather than a repeated attempt to invoke \code{noSuchMethod}
3493
- (\ref{bindingActualsToFormals }).
3493
+ (\ref{bindingFormalsToActuals }).
3494
3494
Here is an example where a dynamic type error occurs because
3495
3495
an attempt is made to pass an \code{Invocation},
3496
3496
and the type of the parameter is \code{Never}:%
@@ -4485,7 +4485,7 @@ \subsubsection{Generative Constructors}
4485
4485
It is a \Error{compile-time error} if class $S$ does not declare
4486
4486
a generative constructor named $S$ (respectively \code{$S$.\id}).
4487
4487
Otherwise, the static analysis of $s$ is performed
4488
- as specified in Section~\ref{bindingActualsToFormals },
4488
+ as specified in Section~\ref{bindingFormalsToActuals },
4489
4489
as if \code{\SUPER} respectively \code{\SUPER.\id}
4490
4490
had had the function type of the denoted constructor,
4491
4491
%% TODO(eernst): The following is very imprecise, it just serves to remember
@@ -6749,8 +6749,8 @@ \subsection{Explicit Invocation of an Instance Member of an Extension}
6749
6749
Let $m$ be the member of $E$ that has the name $n$.
6750
6750
Evaluation of $i$ proceeds by evaluating
6751
6751
$e$ to an object $o$,
6752
- evaluating and binding the actual arguments to the formal parameters
6753
- (\ref{bindingActualsToFormals }),
6752
+ evaluating the actual arguments and binding the formal parameters to them
6753
+ (\ref{bindingFormalsToActuals }),
6754
6754
and finally executing $m$
6755
6755
in a binding environment where \List{X}{1}{k} are bound to \List{t}{1}{k},
6756
6756
\THIS{} is bound to $o$,
@@ -13433,8 +13433,8 @@ \subsubsection{Actual Argument List Evaluation}
13433
13433
}
13434
13434
13435
13435
13436
- \subsubsection{Binding Actuals to Formals }
13437
- \LMLabel{bindingActualsToFormals }
13436
+ \subsubsection{Binding Formals to Actuals }
13437
+ \LMLabel{bindingFormalsToActuals }
13438
13438
13439
13439
\commentary{%
13440
13440
In the following, the non-generic case is covered implicitly:
@@ -13653,7 +13653,7 @@ \subsubsection{Binding Actuals to Formals}
13653
13653
and let $p_{h+1}, \ldots, p_{h+k}$ be the optional parameters declared by $f$.
13654
13654
13655
13655
\LMHash{}%
13656
- An evaluated actual argument part
13656
+ With a given evaluated actual argument part
13657
13657
13658
13658
\noindent
13659
13659
\code{<\List{t}{1}{r}>(\ArgumentList{o}{m}{q}{l})}
@@ -13665,7 +13665,7 @@ \subsubsection{Binding Actuals to Formals}
13665
13665
\code{<\TypeArgumentListStd>(\ArgumentList{a}{m}{q}{l})}
13666
13666
13667
13667
\noindent
13668
- is bound to the formal type parameters and formal parameters of $f$ as follows:
13668
+ the formal type parameters and formal parameters of $f$ are bound as follows:
13669
13669
13670
13670
\LMHash{}%
13671
13671
% Passing a wrong number of actual type arguments.
@@ -13922,7 +13922,7 @@ \subsubsection{Function Expression Invocation}
13922
13922
13923
13923
\LMHash{}%
13924
13924
Otherwise, the static analysis of $i$ is performed as specified
13925
- in Section~\ref{bindingActualsToFormals },
13925
+ in Section~\ref{bindingFormalsToActuals },
13926
13926
using $F$ as the static type of the invoked function,
13927
13927
and the static type of $i$ is as specified there.
13928
13928
@@ -13941,8 +13941,8 @@ \subsubsection{Function Expression Invocation}
13941
13941
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
13942
13942
13943
13943
\noindent
13944
- is evaluated by binding actuals to formals
13945
- as specified in Section~\ref{bindingActualsToFormals },
13944
+ is evaluated by binding formals to actuals
13945
+ as specified in Section~\ref{bindingFormalsToActuals },
13946
13946
and executing the body of $f$ with those bindings;
13947
13947
the returned result is then the result of evaluating $i$.
13948
13948
@@ -14045,9 +14045,9 @@ \subsection{Function Closurization}
14045
14045
}
14046
14046
14047
14047
\LMHash{}%
14048
- An invocation of $o$ with a given argument list will bind actuals to formals
14048
+ An invocation of $o$ with a given argument list will bind formals to actuals
14049
14049
in the same way as an invocation of $f$
14050
- (\ref{bindingActualsToFormals }),
14050
+ (\ref{bindingFormalsToActuals }),
14051
14051
and then execute the body of $f$
14052
14052
in the captured scope amended with the bound parameter scope,
14053
14053
yielding the same completion
@@ -14142,7 +14142,7 @@ \subsection{Generic Function Instantiation}
14142
14142
\ref{initializerLists},
14143
14143
\ref{new},
14144
14144
\ref{const},
14145
- \ref{bindingActualsToFormals },
14145
+ \ref{bindingFormalsToActuals },
14146
14146
\ref{assignment},
14147
14147
\ref{localVariableDeclaration},
14148
14148
\ref{switch},
@@ -14764,7 +14764,7 @@ \subsubsection{Ordinary Invocation}
14764
14764
14765
14765
\LMHash{}%
14766
14766
The static analysis of $i$ is then performed
14767
- as specified in Section~\ref{bindingActualsToFormals },
14767
+ as specified in Section~\ref{bindingFormalsToActuals },
14768
14768
considering $F$ to be the static type of the function to call.
14769
14769
The static type of $i$ is as specified there.
14770
14770
@@ -14782,8 +14782,8 @@ \subsubsection{Ordinary Invocation}
14782
14782
\LMHash{}%
14783
14783
If the denoted member of $i$ is a static method,
14784
14784
let $f$ be the function declared by that member.
14785
- The binding of actual arguments to formal parameters is performed
14786
- as specified in Section~\ref{bindingActualsToFormals }.
14785
+ The binding of formal parameters to actual arguments is performed
14786
+ as specified in Section~\ref{bindingFormalsToActuals }.
14787
14787
The body of $f$ is then executed with respect to the bindings
14788
14788
that resulted from the evaluation of the argument part.
14789
14789
The value of $i$ is the object returned by the execution of $f$'s body.
@@ -14915,7 +14915,7 @@ \subsubsection{Ordinary Invocation}
14915
14915
14916
14916
\LMHash{}%
14917
14917
Otherwise, the static analysis of $i$ is performed
14918
- as specified in Section~\ref{bindingActualsToFormals },
14918
+ as specified in Section~\ref{bindingFormalsToActuals },
14919
14919
considering $F$ to be the static type of the function to call,
14920
14920
and the static type of $i$ is as specified there,
14921
14921
except that invocations of methods named \code{remainder}
@@ -15038,8 +15038,8 @@ \subsubsection{Ordinary Invocation}
15038
15038
15039
15039
\LMHash{}%
15040
15040
If the method lookup succeeded,
15041
- the binding of actual arguments to formal parameters is performed
15042
- as specified in Section~\ref{bindingActualsToFormals }.
15041
+ the binding of formal parameters to actual arguments is performed
15042
+ as specified in Section~\ref{bindingFormalsToActuals }.
15043
15043
The body of $f$ is then executed with respect to the bindings
15044
15044
that resulted from the evaluation of the argument list,
15045
15045
and with \THIS{} bound to $o$.
@@ -15278,7 +15278,7 @@ \subsubsection{Superinvocations}
15278
15278
Otherwise
15279
15279
\commentary{(when one of the lookups succeeded)},
15280
15280
the static analysis of $i$ is performed
15281
- as specified in Section~\ref{bindingActualsToFormals },
15281
+ as specified in Section~\ref{bindingFormalsToActuals },
15282
15282
considering the function to have static type $F$,
15283
15283
and the static type of $i$ is as specified there.
15284
15284
@@ -15336,9 +15336,9 @@ \subsubsection{Superinvocations}
15336
15336
}
15337
15337
15338
15338
\LMHash{}%
15339
- Otherwise perform the binding of actual arguments to formal parameters for
15339
+ Otherwise perform the binding of formal parameters to actual arguments for
15340
15340
\code{$f$<\TypeArgumentListStd>(\ArgumentListStd)}
15341
- as specified in Section~\ref{bindingActualsToFormals },
15341
+ as specified in Section~\ref{bindingFormalsToActuals },
15342
15342
and execute the body of $f$ with said bindings
15343
15343
plus a binding of \THIS{} to $o$.
15344
15344
The result returned by $f$ is then the result of evaluating $i$.
@@ -16075,7 +16075,7 @@ \subsubsection{Generic Method Instantiation}
16075
16075
\ref{initializerLists},
16076
16076
\ref{new},
16077
16077
\ref{const},
16078
- \ref{bindingActualsToFormals },
16078
+ \ref{bindingFormalsToActuals },
16079
16079
\ref{assignment},
16080
16080
\ref{localVariableDeclaration},
16081
16081
\ref{switch},
@@ -22530,7 +22530,7 @@ \subsection{Dynamic Type System}
22530
22530
\ref{redirectingFactoryConstructors},
22531
22531
\ref{lists},
22532
22532
\ref{new},
22533
- \ref{bindingActualsToFormals },
22533
+ \ref{bindingFormalsToActuals },
22534
22534
\ref{ordinaryInvocation},
22535
22535
\ref{assignment},
22536
22536
\ref{typeCast},
0 commit comments