14
edits
(immutable property set access not supported in 4.0.0) |
(function handles in OOP context) |
||
Line 37: | Line 37: | ||
Use "private" properties as workaround. | Use "private" properties as workaround. | ||
* Function handles to package methods and static class methods. | |||
For example if we have <code>+mypackage/myfunc.m</code>, creating a function handle as <code>fh = @mypackage.myfunc</code> won't work. | |||
As a workaround, we can create an indirection using an anonymous function <code>fh = @(varargin) mypackage.myfunc(varargin{:})</code>. | |||
Similarly for static class methods where <code>fh = @MyClass.myfunc</code> isn't yet supported. | |||
==== supported ==== | ==== supported ==== |
edits