On Tuesday, 23 January 2018 at 01:08:19 UTC, ag0aep6g wrote:

The real question is about this line:

    p2 = ls[0];

That's an out-of-bounds access, and the compiler does not catch this statically. Instead, it inserts bounds-checking code that crashes the program safely with an `Error`.

In trying to work out a solution to that, I ran across this oddity:

https://issues.dlang.org/show_bug.cgi?id=18282

Reply via email to