Navigation

Operators and Keywords

Function List:

C++ API

Built-in Function: val = optimize_subsasgn_calls ()
Built-in Function: old_val = optimize_subsasgn_calls (new_val)
Built-in Function: 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.

Package: octave