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

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

[Octave-bug-tracker] [bug #56883] inputname() is empty when calling a cl


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #56883] inputname() is empty when calling a classdef method by "dot notation"
Date: Thu, 12 Sep 2019 09:56:44 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36

Update of bug #56883 (project octave):

                  Status:                    None => Confirmed              
                 Release:                   5.1.0 => dev                    
        Operating System:       Microsoft Windows => Any                    
                 Summary: inputname() returns empty when called in a "dot
style" method => inputname() is empty when calling a classdef method by "dot
notation"

    _______________________________________________________

Follow-up Comment #1:

Thank you for the report.  I can confirm this behavior for the current stable
and dev version of Octave.  Interesting is that Matlab R2019a is not able to
get the inputname of "pi" at all:


>> obj = some_class();             
>> some_method (obj, pi)           
[obj]
[]
>> obj.some_method (pi)            
[obj]
[]


I modified your method to print both inputnames:


fprintf('[%s]\n', inputname(1));
fprintf('[%s]\n', inputname(2));


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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