Skip to content

maybe_uninit

The maybe_uninit is a variable attribute used to suppress uninitialized variable errors and hint compilers that the variables may be uninitialized. Immutable variables cannot be maybe_uninit.

Syntax

maybe_uninit var T identifier; 

The code below must trigger a compile error.

var T identifier; 

Variables without the maybe_uninit attribute must be initialized on construction.