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

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

[Octave-bug-tracker] [bug #40828] Exception handling: MException object


From: Guillaume
Subject: [Octave-bug-tracker] [bug #40828] Exception handling: MException object functions
Date: Thu, 6 Oct 2022 12:04:28 -0400 (EDT)

Follow-up Comment #17, bug #40828 (project octave):

I attach a new version of MException.m that should take into account all of
the comments that were made below. The implementation of the MException class
seems to be complete.

What is left is changing "try/catch ME" to return a MException object instead
of a struct. This change could be announced as imminent in the next release of
Octave and implemented in the one after. I notice that it was mentioned in the
NEWS for Octave 3:

http://hg.savannah.gnu.org/hgweb/octave/file/449ed6f427cb/etc/NEWS.3#l135

That said, I am not sure how many compatibility issues would be created. A
search on "catch ME" in github/gnu-octave returns multiples hits in a single
function of the statistics toolbox:

https://github.com/gnu-octave/statistics/blob/b9ecb09f8c72d96a241dcbe064c9338cb55d63ac/inst/fitgmdist.m#L139

where it wouldn't create any problem.

(file #53805)

    _______________________________________________________

Additional Item Attachment:

File name: MException.m                   Size:11 KB
    <https://file.savannah.gnu.org/file/MException.m?file_id=53805>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?40828>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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