Changes

Jump to navigation Jump to search
431 bytes added ,  05:20, 17 June 2015
function handles in OOP context
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 ====
14

edits

Navigation menu