[Issue 9071] sort function won't compile but Range fits describtion
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 28 01:30:06 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9071
--- Comment #8 from monarchdodra at gmail.com 2012-12-28 01:30:02 PST ---
(In reply to comment #7)
> That sounds very good. Thank you!
>
> p.s. Can you point me to the new slicing definition? Anyway thanks again
The new slicing definition is only documented in code right now, but you'll
find it here:
https://github.com/D-Programming-Language/phobos/blob/2bbb33df2fa9f87ae73de6924031e1a854756ea1/std/range.d#L1236
To sum it up in a jiffy, the type returned by slice must be an exact type match
of the original.*
There are also special conditions in regards to infinite ranges and opDollar,
but I'll let you read about those.
*Not yet fully enforced due to a bug, but documented that way anyways, and will
end up that way.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list