Smart pointers instead of GC?

Frank Bauer y at z.com
Tue Feb 4 16:07:25 PST 2014


Regarding different pointer types in Rust as function arguments:

A function that takes a borrowed pointer &T can also be called 
with an owning pointer ~T, an RC pointer Rc<T>, or a GC pointer 
Gc<T>. They all convert neatly to a &T. One function to rule them 
... err .. accomodate all.


More information about the Digitalmars-d mailing list