bugGNU Octave - Bugs: bug #47107, error with struct input ignores...

 
 

bug #47107: error with struct input ignores stack field

Submitted by:  Julien Bect <jbect>
Submitted on:  Wed 10 Feb 2016 08:17:16 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 03 Sep 2017 01:20:22 AM UTC, comment #3:

Marking as confirmed. Not that many people use this functionality, so until there is a strong interest it probably won't get fixed.

Rik <rik5>
Project Administrator
Thu 11 Feb 2016 09:17:28 AM UTC, comment #2:

Well, both, actually ;-)

I have some code where I use error with a struct input, and I was surprised to discover that my code behaved differently in Matlab and in Octave.

It took me some time to realize that the stack field was simply ignored by Octave. In fact, the documentation for 'error' does not even mention the case where error is called with a struct input.

So, yes, I was mainly recording this in the tracker to make it easier for people to find this information.

But of course I would be happy if someone could tackle the issue. It has been there for such a long time, I assume it must not be bothering too many people...

Julien Bect <jbect>
Thu 11 Feb 2016 09:06:48 AM UTC, comment #1:

Thanks for the bug report, Julien.

There are lots of FIXMEs in the code. Are you suggesting that we do something to address this one, or just putting it in the tracker for the record?

Lachlan Andrew <lachlan>
Project Member
Wed 10 Feb 2016 08:17:16 AM UTC, original submission:

The error () function, when called with a struct input argument, ignores the 'stack' field.

There is a comment about that in libinterp/corefcn/error.cc:

Julien Bect <jbect>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by jbect (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Sep 2017 01:20:22 AM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1