I want this so badly, please implement

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 7 10:03:31 PDT 2016


On Thursday, 7 April 2016 at 15:35:31 UTC, Adam D. Ruppe wrote:
> A program dies with a RangeError. I don't know why because it 
> doesn't tell me any useful information about the failing data.

The length of data will tell you which data it is?

> This is quite frustrating because that information is available 
> and trivial to attach to the object, but it is just dropped.

Sounds like code bloat for little gain. I'm afraid data length 
and index value are not generally useful to diagnose this 
problem. Throwing the slice can be helpful, but can't be done 
because it can be a static array on stack.


More information about the Digitalmars-d mailing list