Smart pointers instead of GC?

Walter Bright newshound2 at digitalmars.com
Mon Feb 3 11:53:58 PST 2014


On 2/3/2014 3:45 AM, Michel Fortin wrote:
> As for writing functions twice, I don't see it. T is implicitly convertible to
> T?, so a single function with a T? parameter will work with both T and T?
> arguments.

It's the same issue as with const (which we dealt with by adding the 'inout' 
qualifier). It's the affect of the argument type on the return type.



More information about the Digitalmars-d mailing list