shithub: mc

ref: c0192155d8e843ab3355a564ed97537d0ede00a6
dir: /test/structptr.myr/

View raw version
type pair = struct
	a : int
	b : int
;;

const frob = {s
	s.a = 12
	s.b = 30
}

const main = {
	var s : pair
	frob(&s)
	-> s.a + s.b
}