equal
deleted
inserted
replaced
135 |
135 |
136 \begin{center} |
136 \begin{center} |
137 \texttt{infix def \$ (r: Rexp) = RECD(s, r)} %$ |
137 \texttt{infix def \$ (r: Rexp) = RECD(s, r)} %$ |
138 \end{center} |
138 \end{center} |
139 |
139 |
|
140 \subsection*{Outdated Syntax in CW4} |
|
141 |
|
142 The templates for this task contain the lines |
|
143 |
|
144 \begin{lstlisting}[numbers=none,language=Scala] |
|
145 def i(args: Any*): String = " " ++ sc.s(args:_*) ++ "\n" |
|
146 def l(args: Any*): String = sc.s(args:_*) ++ ":\n" |
|
147 \end{lstlisting} |
|
148 |
|
149 \noindent |
|
150 which produce a warning about ``The syntax `x: \_*` is no longer |
|
151 supported for vararg splices''. This warning can be avoided by writing |
|
152 \texttt{args*} instead of \texttt{args:\_*}. |
|
153 |
140 \end{document} |
154 \end{document} |
141 |
155 |
142 %%% Local Variables: |
156 %%% Local Variables: |
143 %%% mode: latex |
157 %%% mode: latex |
144 %%% TeX-master: t |
158 %%% TeX-master: t |