I noticed that some methods in Phobos will have very different behavior
with forward ranges that have reference semantics and those that have
value semantics.
Example:
auto range = getSomeRange();
auto count = range.walkLength;
foreach (element; range) { writeln(element); }
If getSomeRange
On Tue, Dec 15, 2015 at 05:36:52PM +, Chris Wright via Digitalmars-d-learn
wrote:
> I noticed that some methods in Phobos will have very different
> behavior with forward ranges that have reference semantics and those
> that have value semantics.
>
> Example:
>
> auto range =
On Tuesday, 15 December 2015 at 17:36:52 UTC, Chris Wright wrote:
I noticed that some methods in Phobos will have very different
behavior with forward ranges that have reference semantics and
those that have value semantics.
Example:
auto range = getSomeRange();
auto count =