Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created June 13, 2010 17:20
Show Gist options
  • Save wandernauta/436821 to your computer and use it in GitHub Desktop.
Save wandernauta/436821 to your computer and use it in GitHub Desktop.
foo: func() -> Bool {
return false;
}
bar: func() -> Int {
return 0;
}
"First attempt: %s" format((bar() || foo() || 20) toString()) println()
"Second attempt: %s" format((foo() || bar() || 20) toString()) println()
"Should have printed: 20" println()
First attempt: 1
Second attempt: true
Should have printed: 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment