bugGNU Octave - Bugs: bug #40955, traditional struct display is not...

 
 

bug #40955: traditional struct display is not like matlab's

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Tue 17 Dec 2013 10:01:16 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 19 Dec 2013 08:57:40 PM UTC, comment #4:

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/ab26db8da20a

John W. Eaton <jwe>
Project Administrator
Wed 18 Dec 2013 03:03:29 PM UTC, comment #3:

thank you for the hg guide.
I'll submit an hg export for future patches.
this as well as previous ones were not substantial.

I maintain this is an incompatibility with matlab,
albeit one related to the CUI not to the interpreter.
just make a poll among 10 matlab users and you'll find their majority to support this contention.

this is unrelated to octave's default CUI, rather it only affects the --traditional option, which incidentally already replaces the prompt with ">>".

Felipe G. Nievinski <fgnievinski>
Wed 18 Dec 2013 02:18:22 PM UTC, comment #2:

Furthermore, I'm not sure this really is a "bug".

Our goal is to make sure that if it works in Matlab, it works in Octave and produces the same numbers. We are generally less concerned about cosmetic differences. For example, we don't consider the fact that the default prompt says "octave:1>" instead of ">>" a bug.

I like Octave's default display more than Matlab's, personally. It's nice to be able to look at the values it contains, and it's nice that it explicitly says the type, a scalar struct, instead of the much-misunderstood struct array.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 18 Dec 2013 02:13:49 PM UTC, comment #1:

Can you please redo this patch and all of your other patches as an hg export?

http://jordi.inversethought.com/blog/how-to-write-a-patch-for-octave/
https://www.gnu.org/software/octave/doc/interpreter/Basics-of-Generating-a-Changeset.html

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Tue 17 Dec 2013 10:01:16 PM UTC, original submission:

patch attached as per <http://stackoverflow.com/questions/13512743/display-struct-fields-without-the-mess>

Felipe G. Nievinski <fgnievinski>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #30032:  octave.cc.diff added by fgnievinski (56B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by fgnievinski (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 19 Dec 2013 08:57:40 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 17 Dec 2013 10:01:16 PM UTCfgnievinskiAttached File-=>Added octave.cc.diff, #30032

    Back to the top


    Powered by Savane 3.1-cleanup1