Pointers.ForwardPointer

(in ./Carbon/Pointers/ForwardPointer.lua)

Wraps primitives and forwards operators. Use Operators for comparisons to ensure compatibility. Data pointed to by a ForwardPointer is copied.


Methods

class public ForwardPointer:New(any? value)

Returns ForwardPointer

  • optional value: The value to point this ForwardPointer at.

Creates a new ForwardPointer pointing at the given value.


object public ForwardPointer:Copy()

Returns ForwardPointer

Copies the ForwardPointer object, but not the data pointed to.


object public ForwardPointer:Get()

Returns any?

Returns an unwrapped version of the value pointed to by this pointer.


object public ForwardPointer:New(any? value)

Returns void

  • optional value: The value to point this ForwardPointer at.

Points the ForwardPointer at the given value.


Properties

[none]