Chapter 7, Exercise 2
Had a good time in Montana, though work pressures allowed me only
5 hours of sleep over the last couple of nights before the trip.
Bittersweet, as expected. Not bitterroot. Great visibility from the airplane both directions. On the way there, the bay area socked in but only to about 1200 feet, so all my familiar mountain landmarks were islands in the fog; Clear Lake and Berryessa; Castle Crags and the Trinity Alps. The Channelled Scablands. On the way back, Butte stood out like a huge infected boil; but the lakes and valleys of the Bitterroots were beautiful; saw the Snake, the Columbia, the Deschutes; Rainier, Adams, St Helens, Hood, Jefferson, the Sisters, Shasta, Lassen, and identified (I think) Grizzly Lake in the Trinities, one of my favoritest day hikes ever.
But enough of that. It's late, so all you get for exercise 2 is a diff:
$$ diff c7xShapes.scala c7x2.scala
22a23,27
> class Barrel with Shape {
> override def draw : unit = W.rn( "Barrel.draw" );
> override def erase : unit = W.rn( "Barrel.erase");
> override def roll : unit = W.rn( "Barrel.roll cooooooool.");
> }
27c32
< rand.nextInt(3) match {
---
> rand.nextInt(4) match {
30a36
> case 3 => new Barrel;
34c40
< object Shapes {
---
> object c7x2 {
Pretty trivial.
12:17:52 AM