octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51295] functions in +package directories no l


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51295] functions in +package directories no longer work correctly
Date: Fri, 23 Jun 2017 19:30:37 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #3, bug #51295 (project octave):

This still does not work fully. If the function is called with arguments,
nargin is zero


>> type +foo/myfunc.m
+foo/myfunc.m is the user-defined function defined from:
/home/mike/src/octave/foo/+foo/myfunc.m

function y = myfunc (x)
  if (nargin > 0)
    y = x;
  else
    y = pi;
  endif
endfunction

>> foo.myfunc
ans =  3.1416
>> foo.myfunc(1)
ans =  3.1416



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51295>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]