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]
    @property ref
    lightScope
    (
    T
    )
    (
    auto ref return scope T v
    )
    if (
    !is(T : P*,
    P
    ) &&
    __traits(hasMember, T, "lightScope")
    )
  2. auto ref lightScope [@property getter]
  3. auto lightScope [@property getter]

Meta