You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,21 +16,24 @@ The `master` branch and the `3.X.Y` tag releases are for the third edition. The
16
16
> [!WARNING]
17
17
> Scala 3 is evolving, as are the tools that support it. I try to keep the `main` branch up to date with the latest versions, including changing the examples as required to handle new and changed features (see, e.g., [issue #131](https://github.com/deanwampler/programming-scala-book-code-examples/issues/131)). Hence, sometimes an example (or how to run it) will be different from what you see in the book. So, if you are reading the book and want the examples exactly as they appear there, with the same tool versions used at that time, then grab the [`3.0.0-final`](https://github.com/deanwampler/programming-scala-book-code-examples/tree/3.0.0-final) release.
18
18
>
19
-
> In particular, running a scala program on the command line has changed as of 3.5.0. So, for example, on page 18 of the book, change this command for running a program at the shell prompt:
> In particular, running a scala program on the command line has changed as of 3.5.0. So, for example, at the top of page 12 of the book, change this command for running a program at the shell prompt:
22
20
>
21
+
> ```
22
+
> $ cp="target/scala-3.5.0/classes/" # Note the book has "3.0.0"
> Note the required `-M` (or `--main-class`) flag before the “`main`” class and the `--` to separate `scala` arguments from your programs arguments. Use these changes for all subsequent examples in the book that use the `scala` command to run code.
> Note the required `--` to separate `scala` arguments from your programs arguments. Use this change for all subsequent examples in the book that use the `scala` command to run code.
28
-
>
29
-
> It appears that `sbt` syntax has **not** changed when using `runMain` at the SBT prompt:
0 commit comments