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

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

[Octave-bug-tracker] [bug #46891] inputname fails in OO @classfile


From: Rik
Subject: [Octave-bug-tracker] [bug #46891] inputname fails in OO @classfile
Date: Wed, 13 Jan 2016 23:04:20 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?46891>

                 Summary: inputname fails in OO @classfile
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 13 Jan 2016 03:04:18 PM PST
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Documentation on the old object oriented syntax can be found in chapter 34 of
the manual.  To reproduce the bug.


cd examples/code
../../run-octave -f --no-gui
f = FIRfilter (polynomial ([1 1 1]/3))
 = 0.333333 + 0.333333 * X + 0.333333 * X ^ 2


The result, according to the manual on approximately page 754, should be


octave:1> f = FIRfilter (polynomial ([1 1 1]/3))
f.polynomial = 0.333333 + 0.333333 * X + 0.333333 * X ^ 2


The code in @FIRfilter/display.m is 


function display (f)
  display (f.polynomial);
endfunction


And the corresponding code in @polynomial/display.m is


function display (p)
  a = p.poly;
  first = true;
  fprintf ("%s =", inputname (1));


Using the debugger, the result of the call to inputname is "".  This is a
regression that happened in between 3.2.4 (working) and 3.4.3.  Sadly, we do
not have regression tests running that can catch this.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46891>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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