next up previous contents index
Next: Translating distributed array restriction Up: Basic translation Previous: Translation of return statement   Contents   Index

Translating constructor invocations

The rules for translating constructor invocations follow directly from the rules for method invocations given in section A.4.15.

Figure A.34 illustrates the translation for a class instance creation expression. Explicit constructor invocations (specifying this or super) do not introduce any new features.

Figure A.35: Translation of distributed array restriction operation.

SOURCE:

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\begin{tabbing}
$v$\verb$ = $...
.../ $$e_{\mbox{\small loc}}$\verb$ ;$
\end{tabbing}\end{minipage}\end{displaymath}

TRANSLATION:


\begin{displaymath}
\begin{minipage}[t]{\linewidth}\begin{tabbing}
$\mbox{\it RE...
...{R-1}\left[{a}\right]$\verb$ ;$ \\
\end{tabbing}\end{minipage}\end{displaymath}

where:

\begin{displaymath}
\begin{array}{l}
\mbox{The expression $v$ is the assigned a...
...N}} \\
\quad \quad \mbox{are defined in the text.}
\end{array}\end{displaymath}



Bryan Carpenter 2003-04-15