The Artima Developer Community


Errata for Actors in Scala
Chapter 3: Scala's Language Support for Actors
Return to errata index.

Page 39 (PDF page 39):
The currying example looks wrong.

It is
def curriedAdd(x: Int)(y: Int) = x + x
...
add(3)(5)

but should be
def curriedAdd(x: Int)(y: Int) = x + y
...
curriedAdd(3)(5)
Page 34 (PDF page 53):
In Listing 3.1 Extending HttpServlet from Scala there is an extra dot in
the line that is calling the superclass init() method.

The line super.init.() should be super.init()
Page 39 (PDF page 58):
The currying example looks wrong.

It is
def curriedAdd(x: Int)(y: Int) = x + x

but should be
def curriedAdd(x: Int)(y: Int) = x + y

Page number: Book type: Paperback book PDF eBook
Book version: (Or build date. Found on back of title page.)
Your feedback:
Your name: (optional)
Your email address: (optional) (will not be published)

Copyright © 2024 Artima, Inc. All rights reserved.