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

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

[Octave-bug-tracker] [bug #48802] function overload resolution on functi


From: Guillaume
Subject: [Octave-bug-tracker] [bug #48802] function overload resolution on function handles fails on classdef methods defined in class body
Date: Tue, 5 Mar 2019 12:11:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #7, bug #48802 (project octave):


>> c1_obj = c1 ();                                                            
                                      
>> c2_obj = c2 ();
>> m1_fh = c2_obj.m1_h ();
>> sin_fh = c2_obj.sin_h ();
>> m1_fh (pi)  %% m1 or error from c2:m1 about wrong type?
m1
    3.1416

>> m1_fh (c2_obj)  %% c2:m1, I assume
c2:m1
>> m1_fh (c1_obj)  %% c1:m1, or error from c2:m1 about wrong type?
m1
  c1 with no properties.

>> sin_fh (pi)  %% built-in sin or error from c2:sin about wrong type?

ans =

   1.2246e-16

>> sin_fh (c2_obj)  %% c2:sin, I assume
c2:sin
>> fh = @sin;
>> fh (pi)      %% built-in sin, I assume.

ans =

   1.2246e-16

>> fh (c2_obj)  %% c2:sin or error from built-in sin about wrong type?
c2:sin


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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