[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: |
Wed, 29 Mar 2017 20:14:59 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #32, bug #50640 (project octave):
We're actually getting very, very close. I switched to overloading disp,
rather than display, and now Octave's built-in display function takes care of
handling compact/loose format. See this cset
http://hg.savannah.gnu.org/hgweb/octave/rev/f04f32f08590.
This cset also fixed up inputParser which had been broken somewhere along the
way.
The issue remaining is that the built-in display should add a newline after
calling disp() for whatever object it is handling.
This works for built-in objects as shown below.
octave:2> x = magic (3);
octave:3> display (x)
x =
8 1 6
3 5 7
4 9 2
octave:4> disp (x)
8 1 6
3 5 7
4 9 2
octave:5>
octave:5> x = audiorecorder ();
octave:6> display (x)
x =
audiorecorder object with properties:
BitsPerSample = 16
CurrentSample = 0
DeviceID = -1
NumberOfChannels = 2
Running = off
SampleRate = 44100
TotalSamples = 0
Tag =
Type = audiorecorder
UserData = [](0x0)
octave:7> disp (x)
audiorecorder object with properties:
BitsPerSample = 16
CurrentSample = 0
DeviceID = -1
NumberOfChannels = 2
Running = off
SampleRate = 44100
TotalSamples = 0
Tag =
Type = audiorecorder
UserData = [](0x0)
octave:8>
To temporarily get things to work I added an extra newline in the disp.m
routines for old-style class objects (@audioplayer, @audiorecorder, @ftp).
The new-style classdef class objects like inputParser already work correctly
(why? Who knows).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50640>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, (continued)
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Markus Mützel, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, John W. Eaton, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Rik, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Rik, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, John W. Eaton, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Mike Miller, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Lars Kindermann, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Rik, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, John W. Eaton, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, John W. Eaton, 2017/03/29
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function,
Rik <=
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Ernst Reissner, 2017/03/31
- [Octave-bug-tracker] [bug #50640] display function not passing arguments to overloaded version of function, Markus Mützel, 2017/03/31