Pointers.BasicPointer
(in ./Carbon/Pointers/BasicPointer.lua)
Wraps an object to pass it by-reference.
Methods
class public BasicPointer:New(any? value
)
Returns BasicPointer
- optional
value
: The value the pointer should point at.
Creates a new BasicPointer, pointing at any sort of object.
object public BasicPointer:Copy()
Returns BasicPointer
Copies the BasicPointer, but not the value pointed to.
object public BasicPointer:Get()
Returns any?
Returns the value currently pointed at by the BasicPointer.
object public BasicPointer:Set(any? value
)
Returns void
Sets a new value to be pointed at by this BasicPointer.
Properties
[none]