RFC on SlidingSplitter Range

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 3 14:12:36 PDT 2014


On Friday, 3 October 2014 at 20:28:24 UTC, Nordlöw wrote:
> On Friday, 3 October 2014 at 20:15:33 UTC, Nordlöw wrote:
>> Could you please take a look again at
>
> I made another update at
>
> https://github.com/nordlow/justd/blob/master/range_ex.d#L15
>
> I had forgotten to move front and popFront out of static if 
> hasSlicing!R
>
> Now
>
>     auto name = slidingSplitter("Nordlöw");
>
> errors
>
> range_ex.d(41,24): Error: incompatible types for ((this._index) 
> += (stride(this._data, this._index))): 'ulong' and 'Result'
> range_ex.d(88,12): Error: template instance 
> range_ex.SlidingSplitter!string error instantiating
> range_ex.d(131,32):        instantiated from here: 
> slidingSplitter!string

It must be resolving to std.range.stride. You want std.utf.stride.


More information about the Digitalmars-d-learn mailing list