1 2 3 4 5 6 7 8 9 10 11 12 13
struct Foo{ mut: name string } fn (f mut Foo) info() { f.name = 'foo' } fn (mut f &Foo) info2() { f.name = 'foo' } fn main() { println('hello, world') }