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

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

[Octave-bug-tracker] [bug #49794] display vs. disp functions


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #49794] display vs. disp functions
Date: Wed, 29 Mar 2017 14:40:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #30, bug #49794 (project octave):

I made an additional change so that Octave never calls the display function
with more than one input argument since this is not documented Matlab behavior
and it was causing trouble for existing Octave classes.  It might be possible
to check whether a display function for a class is defined to accept one or
two arguments and call it differently based on this determination, but I opted
against that since this feature is undocumented in Matlab.

I modified the documentation for the built-in display function so that it
doesn't mention the two-argument version, but I left it as before so that
things like


display (1, 'foo')


will work (as they do in Matlab).

I'll fix any display methods in Octave so that they use inputname instead of a
second argument.

Here's the changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/7d4ca8c01bbb

See also bug #50640

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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