[phobos] phobos commit, revision 1566

Philippe Sigaud philippe.sigaud at gmail.com
Sat May 29 23:39:51 PDT 2010


On Sat, May 29, 2010 at 23:17, Andrei Alexandrescu <andrei at erdani.com>wrote:

There's a tacit rule that has r.opSlice(a, b) return the same type as r
> itself.
>
> I'm not sure if take does that already, but it should simply morph into
> opSlice() if opSlice() is available. No need to use another layer when
> opSlice does what you need.
>

No, it does not do that already. OK, I'm a pain, but what if the range does
not know its length? How do you know if r[0..n] is OK?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100530/4a6bfb2b/attachment-0001.html>


More information about the phobos mailing list