onArraySliceError

A callback for array slice out of bounds errors in D.

extern (C) @trusted pure nothrow @nogc
onArraySliceError
(
size_t lower = 0
,
size_t upper = 0
,
size_t length = 0
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

lower size_t

the lower bound of the index passed of a slice

upper size_t

the upper bound of the index passed of a slice or the index if not a slice

length size_t

length of the array

file string

The name of the file that signaled this error.

line size_t

The line number on which this error occurred.

Throws

Meta