3 ms·
> You'll allocate a managed box with let x: box (Gc) 5; It's GC in full uppercase FWIW, it's a static marker[0] not the type name. And the syntax already works
by masklinn 13y ago
> You'll allocate a managed box with let x: box (Gc) 5;
It's GC in full uppercase FWIW, it's a static marker[0] not the type name. And the syntax already works in 0.10 (although funnily enough only HEAP and GC exist, no e.g. RC)
> The argument to `box` defaults to HEAP, so these are the same:
Yep[1].
[0] http://static.rust-lang.org/doc/0.10/std/gc/index.html http://static.rust-lang.org/doc/0.10/std/gc/index.html
[1] http://static.rust-lang.org/doc/0.10/std/owned/index.html http://static.rust-lang.org/doc/0.10/std/owned/index.html
- steveklabnik 13y agoThanks, I've uppercased it.