Idiomatic way to write a range that tracks how much it consumes

Jon Degenhardt jond at noreply.com
Mon Apr 27 05:48:07 UTC 2020


On Monday, 27 April 2020 at 04:51:54 UTC, Steven Schveighoffer 
wrote:
> On 4/26/20 11:38 PM, Jon Degenhardt wrote:
>> Is there a better way to write this?
>
> I had exactly the same problems. I created this to solve the 
> problem, I've barely tested it, but I plan to use it with all 
> my parsing utilities on iopipe:
>
> https://code.dlang.org/packages/bufref
> https://github.com/schveiguy/bufref/blob/master/source/bufref.d

Thanks Steve, I'll definitely take a look at this.  --Jon



More information about the Digitalmars-d-learn mailing list