Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created August 26, 2010 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertFischer/551535 to your computer and use it in GitHub Desktop.
Save RobertFischer/551535 to your computer and use it in GitHub Desktop.
The order of initialization is vital in Scala; it's hosing things up for me.
abstract class X {
val foo:String
val bar = makeBar(foo)
}
class Y extends X {
val foo = "Hello, World!"
}
@RobertFischer
Copy link
Author

Assuming that "makeBar(foo)" does something like "foo.blah()".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment