Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @makeInitPtr

@makeInitPtr

Panther
Documentation


1: func @makeInitPtr = (uninit_ptr: $T*!) -> T*mut;

  Converts an uninitialized-qualified pointer to a pointer. Paramter uninit_ptr must be concrete, a local variable, and the pointee must be known by the compiler to be initialized (otherwise it is a compile error).

Parameters

  uninit_ptr: The pointer to convert

Return Value

  Returns the converted pointer

Example

(TODO)