CopyBarrier

(in ./Carbon/CopyBarrier.lua)

Prevents copying of the data it points to. Forwards indexes and newindexes to target.

Inherits OOP.Object


Methods

class public CopyBarrier:New(any? value)

Returns CopyBarrier

  • required value: The value to point at.

Creates a new CopyBarrier pointing at the given value.


object public CopyBarrier:Copy()

Returns self

A stub that simply returns itself to prevent copying methods from copying this.


object public CopyBarrier:Get()

Returns any?

Returns the value pointed to by the CopyBarrier.


object public CopyBarrier:Set(any? value)

Returns void

Sets a new value for the CopyBarrier.


Properties

[none]