The OpenD Programming Language

Throw.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 Throw
static
Dst
onBadCast
(
Dst
Src
)
(
Src src
)

Parameters

src Src

source 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 Throw, the function never returns because it throws an exception.

Throws

CheckFailure on bad cast

Meta