Bad array indexing is considered deadly

Nick Sabalausky (Abscissa) via Digitalmars-d digitalmars-d at puremagic.com
Wed May 31 19:33:43 PDT 2017


On 05/31/2017 05:00 PM, Steven Schveighoffer wrote:
> On 5/31/17 3:17 PM, Moritz Maxeiner wrote:
>> So in your specific use case I would say use a wrapper. This is one of
>> the reasons why I am working on my own library for data structures 
>> (libds).
> 
> That is my conclusion too.

Honestly, I really think that if there is need to wrap something as 
basic as "all arrays in a codebase" then it's clear something in the 
langauge had gone horribly wrong.

But short of actually *fixing* D's broken concept of Error, I don't see 
a better solution either.


More information about the Digitalmars-d mailing list