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() returns empty when called


From: Jiawei Wang
Subject: [Octave-bug-tracker] [bug #56883] inputname() returns empty when called in a "dot style" method
Date: Thu, 12 Sep 2019 04:56:37 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

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

                 Summary: inputname() returns empty when called in a "dot
style" method
                 Project: GNU Octave
            Submitted by: jwang
            Submitted on: Thu 12 Sep 2019 08:56:35 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Jiawei Wang
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Consider the following class definition

classdef some_class
    methods
        function some_method(obj, x)
            fprintf('[%s]\n', inputname(2));
        end
    end
end

and the commands

obj = some_class();
some_method(obj, pi);
obj.some_method(pi);

gives

[pi]
[]

I think both results should be [pi].




    _______________________________________________________

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]