Skip to content

Instantly share code, notes, and snippets.

@team55
Created June 18, 2014 05:41
Show Gist options
  • Save team55/2854650b0d4236c57d3f to your computer and use it in GitHub Desktop.
Save team55/2854650b0d4236c57d3f to your computer and use it in GitHub Desktop.
test swift
struct Fahrenheit {
var temperature: Double
init() {
temperature = 32.0
}
}
var f = Fahrenheit()
println("The default temperature is \(f.temperature)° Fahrenheit")
// prints "The default temperature is 32.0° Fahrenheit"
struct Fahrenheit {
var temperature: Double
init() {
temperature = 32.0
}
}
var f = Fahrenheit()
println("The default temperature is \(f.temperature)° Fahrenheit")
// prints "The default temperature is 32.0° Fahrenheit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment