The OpenD Programming Language

Warn.onBadCast

Called automatically upon a bad cast from src to type Dst (one that loses precision or attempts to convert a negative value to an unsigned type).

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

Parameters

src Src

The source of the cast

Dst

The target type of the cast

Return Value

Type: Dst

cast(Dst) src

Meta