Skip to content

__nexus_handle_single_ref__

builtin · libnexusinterp/corefcn/data-proprietary.cc

: tf = __nexus_handle_single_ref__ (obj)

True when obj is a handle classdef object and this value is its only reference.

Table indexed assignment uses that to update columns in place, which is what MATLAB does for a value-class table that no other variable shares. An aliased handle reads false: indexed assignment clones a shared nexus_value wrapper first, and that clone bumps the handle count. A direct subsasgn(t,…) call is not this path; the table method also requires an empty inputname so that call still copies.