Navigation

Operators and Keywords

Function List:

C++ API

: val = optimize_subsasgn_calls ()
: old_val = optimize_subsasgn_calls (new_val)
: optimize_subsasgn_calls (new_val, "local")

Query or set the internal flag for subsasgn method call optimizations.

If true, Octave will attempt to eliminate the redundant copying when calling the subsasgn method of a user-defined class.

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: subsasgn.

Package: octave