The OpenD Programming Language

Abort.onBadCast

Called automatically upon a bad cast (one that loses precision or attempts to convert a negative value to an unsigned type). The source type is Src and the destination type is Dst.

struct Abort
static
Dst
onBadCast
(
Dst
Src
)
(
Src src
)

Parameters

src Src

Souce operand

Return Value

Type: Dst

Nominally the result is the desired value of the cast operation, which will be forwarded as the result of the cast. For Abort, the function never returns because it aborts the program.

Meta