The Artima Developer Community


Errata for Programming in Scala
Chapter 12: Traits
Return to errata index.

Page 214 (PDF page 246):
It says: ..."For example, given a trait HasLegs, you could mix both
Philsophical and HasLegs"
It should say: ..."For example, given a trait HasLegs, you could mix
both Philosophical and HasLegs"

Sorry - missed the book version just now

[FIXED]
Page 215 (PDF page 247):
It says: ..."Frog still mixes in trait Philosophize,"...
It should say: ..."Frog still mixes in trait Philosophical,"...

FIXED
Page 224 (PDF page 265):
The source:

def < (that: Rational) = 
    this.numer * that.denom > that.numer * this.denom

should be:

def < (that: Rational) = 
    this.numer * that.denom < that.numer * this.denom

i.e. less than.

Kind Regards,
Thomas

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.