The OpenD Programming Language

lightScope

Tries to strip a reference counting handles from the value. This funciton should be used only when the result never skips the current scope.

This function is used by some algorithms to optimise work with reference counted types.

  1. auto ref lightScope [@property getter]
  2. auto ref lightScope [@property getter]
  3. auto lightScope [@property getter]
    @property
    lightScope
    (
    T
    )
    (
    return T v
    )
    if (
    is(T : P*,
    P
    )
    )

Meta