Smart pointers instead of GC?
Walter Bright
newshound2 at digitalmars.com
Tue Feb 4 16:49:26 PST 2014
On 2/4/2014 3:03 PM, Adam D. Ruppe wrote:
> So bottom line, you don't duplicate functions for the different types. You
> borrow references for processing (analogous to implementing algorithms with
> ranges) and own references for storing... which you need to know about, so only
> one type makes sense.
What happens with this:
T identity(T t) { return t; }
?
More information about the Digitalmars-d
mailing list