Skip to content

Commit

Permalink
DAMN TABS!
Browse files Browse the repository at this point in the history
  • Loading branch information
roja committed Oct 5, 2010
1 parent 0930a44 commit 0391780
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions version-blocks.md
Expand Up @@ -9,8 +9,8 @@ Version blocks use the following syntax:
version (<version expression>) {
<body>
} else {
<alternative body>
}
<alternative body>
}

Where <version expression> can be any of:

Expand Down Expand Up @@ -101,12 +101,11 @@ Examples
"Who are you, and what did you do to my OS?"
}


version(apple) {
version(apple) {
"Nice Hardware!" println()
} else {
"So you like your computer made of plastic then!" println()
}
"So you like your computer made of plastic then!" println()
}

See also io/File and os/Time in the SDK for real-world examples of heavily versioned code.

Expand Down

0 comments on commit 0391780

Please sign in to comment.