cns_call[out1, out2, ...] = cns_call(m, z, method, arg1, arg2, ...) [out1, out2, ...] = cns_call(m, -g, method, arg1, arg2, ...) |
m
z(m, z, arg1, arg2, ...).
g(m, g, arg1, arg2, ...). Note the "-" sign to distinguish g from a layer number. It is removed before calling the method itself.
method
arg1, arg2, ...
out1, out2, ...cns_call is preferable to calling the method directly, like this:
because if the layer (or group) is a subtype of type which overrides method,package_type.method(m, z, arg1, arg2, ...) package_type.method(m, -g, arg1, arg2, ...)
cns_call will correctly call the subtype's implementation of the method.