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

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

[Octave-bug-tracker] [bug #58411] cellfun with "ErrorHandler" returns wr


From: Muhali
Subject: [Octave-bug-tracker] [bug #58411] cellfun with "ErrorHandler" returns wrong message
Date: Thu, 12 Nov 2020 07:01:31 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Follow-up Comment #17, bug #58411 (project octave):


[comment #16 comment #16:]
> I think we've done enough for this report.  Marking as fixed and closing.

hmm. I'm not sure whether this bug is fixed or a new bug should be filed.
Namely, if you slightly modify the code as follows


function varargout = foo (S, varargin)
   warning(S.identifier, S.message) ;
   for i = 1 : nargout
      varargout{i} = NaN ;
   endfor
endfunction
cellfun ("factorial", {1,2,-3}, "ErrorHandler", @foo)


then (again) no warning is issued, unlike in matlab.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58411>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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