Truly lazy ranges, transient .front, and std.range.Generator

Joseph Rushton Wakeling via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 18 14:01:40 PDT 2015


On 18/08/15 22:47, HaraldZealot via Digitalmars-d wrote:
> The last your example I prefer to parametrize with alias to functions:
>
> ```d
> mixin template LazyPopFront(alias frontImplementation, alias
> popFrontImplementation)
> ...
> ```
> It gives more flexibility.

Yea, good call.


> One that worries me, if someone start to make odd things like create shared
> instance of this range.

What kind of issues did you have in mind?



More information about the Digitalmars-d mailing list