Skip to content

Instantly share code, notes, and snippets.

@dsyme
Created February 5, 2016 11:58
Show Gist options
  • Save dsyme/2fceed8074e56f17a761 to your computer and use it in GitHub Desktop.
Save dsyme/2fceed8074e56f17a761 to your computer and use it in GitHub Desktop.
type Point =
struct
val X: float
[<DefaultValue>] val mutable Y: float
new(x: float) = { X = x }
end
let mutable p = Point(3.0)
p.Y <- 4.0
p.Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment