#Reference to mutable object that cannot be re-assigned?
1 messages · Page 1 of 1 (latest)
Interestingly, this doesn't work:
const f: *Foo = &Foo{ .bar = 1 };
but this does:
var foo = Foo{ .bar = 1 };
const f: *Foo = &foo;
So that they can be optimized away
I see