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

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

[Octave-bug-tracker] [bug #64242] destructor is executed even if the con


From: Rik
Subject: [Octave-bug-tracker] [bug #64242] destructor is executed even if the constructor fails and throws an error
Date: Tue, 30 May 2023 20:28:44 -0400 (EDT)

Update of bug #64242 (project octave):

                  Status:                    None => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

We should keep Matlab compatible behavior here.  Also, this is the correct
behavior from the point of view of either interpreter.  The interpreter
doesn't know where in the constructor an error resulted.  Maybe it was after
significant memory had been allocated?  The best response is for the
interpreter to hand the partially constructed object over to the destructor
and have it do whatever is necessary to clean up the partially or fully
constructed object.

Marking as "Won't Fix".


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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