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

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

[Octave-bug-tracker] [bug #50640] display function not passing arguments


From: Rik
Subject: [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function
Date: Mon, 27 Mar 2017 13:30:40 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Update of bug #50640 (project octave):

                  Status:                    None => Confirmed              
                 Summary: audiorecorder() crashes when invoked without
semicolon => display function not passing arguments to overloaded version of
function

    _______________________________________________________

Follow-up Comment #1:

Confirmed.

Something is wrong with the interaction between the display routine (written
in C++ at libinterp/corefcn/pr-output.cc) and the overloaded display routine
for an audiorecorder object which is at
scripts/audio/@audiorecorder/display.m.

If I set a breakpoint in display.m, I see that this calling method works.


rec = audioplayer();
display (rec)


This method fails


rec = audioplayer();
rec


The display.m function is called in this case, but the class object which is
expected to be the first argument to the function is not passed on.  The first
part of display.m is:


function display (recorder)

  if (nargin != 1)
    print_usage ();
  endif


In the failing case, nargin == 0 and Octave calls print_usage() to emit an
error.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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