[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55383] Function handle does not evaluate the
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type |
Date: |
Fri, 4 Jan 2019 07:16:29 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/71.0.3578.80 Chrome/71.0.3578.80 Safari/537.36 |
Follow-up Comment #1, bug #55383 (project octave):
It seems to be specific to functions with one argument.
With "times" no error occurs:
classdef Matrix < handle
properties
value
end
methods (Static)
end
methods
function obj = Matrix(value)
self.value = value;
end
function r = log(obj)
r = log(obj.value);
end
function r = times(obj,b)
r = times(obj.value,b);
end
end
end
timesFH = @(obj,b)times(obj,b);
a = Matrix(3);
timesFH(a,12);
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55383>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, anonymous, 2019/01/04
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type,
anonymous <=
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, anonymous, 2019/01/04
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, Mike Miller, 2019/01/04
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, anonymous, 2019/01/04
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, Mike Miller, 2019/01/04
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, John W. Eaton, 2019/01/04
- [Octave-bug-tracker] [bug #55383] Function handle does not evaluate the correct function for the given object type, Mike Miller, 2019/01/04