More radical ideas about gc and reference counting

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 15:27:07 PDT 2014


On 05/01/2014 12:24 AM, Timon Gehr wrote:
>
> I think this fixes the issue in general, for example, for ranges:
>
> const rng1 = [1,2,3].map!(a=>2*a);
> const rng2 = rng1.filter!(a=>!!(a&1)); // ok
>
>
>
> Probably this should be slightly generalized, eg:
> ...

(The generalization is actually needed for the range example to work.)



More information about the Digitalmars-d mailing list