The Artima Developer Community


Errata for Programming in Scala, 2nd Edition
Chapter 13: Packages and Imports
Return to errata index.

Page 241 (PDF page 281):
The comment in the code at the bottom of the page looks wrong.

package bobsrocket
package fleets
class Fleet {
	// Doesn't compile! Ship is not in scope.
	def addShip() { new Ship }
}

It should read (like in Listing 13.4):
	// No need to say bobsrockets.Ship
Page 250 (PDF page 290):
Minor errata.

Second to last paragraph.

"the distance variable in class LegOfJourney in Listing 13.12" should
read "the distance value ..."

distance is a val in Listing 13.12.
Page 251 (PDF page 291):
"..the Rocket class above can access.."

Unfortunately, due to layout, the Rocket class in Listing 13.13 is on the
following page.

Suggestions: "the Rocket class below"
"the Rocket class in Listing 13.13"
Page 253 (PDF page 293):
Minor errata; typo/grammar.

Last paragraph.

"that are the located in the directory" should read 
"that are located in the directory"

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 © 2021 Artima, Inc. All rights reserved.