[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59617] Function handles in argument list impe
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class |
Date: |
Sun, 6 Dec 2020 09:56:19 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.55 |
Update of bug #59617 (project octave):
Item Group: Build Failure => Regression
Release: other => 6.1.0
Operating System: GNU/Linux => Any
Summary: [octave forge] (interval) Failure in building the
documentation against Octave 6.1 => Function handles in argument list impede
dispatching to correct class
_______________________________________________________
Follow-up Comment #3:
This looks like a regression in core Octave to me.
With the attached @classA in Matlab R2020b:
>> a = classA();
>> max(a,1)
This is classA.max
>> max(1,a)
This is classA.max
>> max(@() 1,a)
This is classA.max
>> max(a, @() 1)
This is classA.max
And in Octave 6.1:
>> A = classA();
>> max(A,1)
This is classA.max
>> max(1,A)
This is classA.max
>> max(@() 1,A)
error: max: cannot compute max (function handle, class)
>> max(A, @() 1)
This is classA.max
This is also a change in behavior with respect to earlier versions of Octave
(see comment #2).
(file #50410)
_______________________________________________________
Additional Item Attachment:
File name: bug59617_dispatch_class.zip Size:0 KB
<https://file.savannah.gnu.org/file/bug59617_dispatch_class.zip?file_id=50410>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59617>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59617] [octave forge] (interval) Failure in building the documentation against Octave 6.1, Rafael Laboissiere, 2020/12/04
- [Octave-bug-tracker] [bug #59617] [octave forge] (interval) Failure in building the documentation against Octave 6.1, Rafael Laboissiere, 2020/12/04
- [Octave-bug-tracker] [bug #59617] [octave forge] (interval) Failure in building the documentation against Octave 6.1, Rafael Laboissiere, 2020/12/06
- [Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class,
Markus Mützel <=
- [Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class, Markus Mützel, 2020/12/06
- [Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class, John W. Eaton, 2020/12/11
- [Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class, Markus Mützel, 2020/12/12
- [Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class, John W. Eaton, 2020/12/14
- [Octave-bug-tracker] [bug #59617] Function handles in argument list impede dispatching to correct class, Markus Mützel, 2020/12/20