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

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

[Octave-bug-tracker] [bug #34478] argn is undefined inside subsref


From: Felipe G. Nievinski
Subject: [Octave-bug-tracker] [bug #34478] argn is undefined inside subsref
Date: Tue, 14 Jan 2014 01:06:55 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.72 Safari/537.36

Follow-up Comment #2, bug #34478 (project octave):

likely related: nargout silently fails.

with @aclass/subsref.m as follows:


function varargout = subsref (in, idx)
  fprintf ('NARGOUT: %dn', nargout ());
endfunction


I find, correctly:


>> [a,b] = aclass()(1);
NARGOUT: 2


and:


>> [a,b] = subsref(aclass(), []);
NARGOUT: 2


but, incorrectly:


>> [a,b] = aclass(){1};
NARGOUT: 1


and also:


>> [a,b] = aclass().field;
NARGOUT: 1



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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