Tricky semantics of ranges & potentially numerous Phobos bugs

bearophile bearophileHUGS at lycos.com
Wed Oct 17 12:42:38 PDT 2012


Andrei Alexandrescu:

> You closed it.
>
> Also that bug has nothing to do with this topic because you 
> can't compile the buggy code and have it silently do the wrong 
> thing.
>
>
> Andrei

Sorry.

A solution is to introduce a "byLineFast" that is similar to the 
current "byLine", and make "byLine" copy.

Another solution is to keep only "byLine" and give it a 
compile-time boolean argument to disable the copy, that is active 
on default.

Bye,
bearophile


More information about the Digitalmars-d mailing list