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

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

[Octave-bug-tracker] [bug #60150] handle based class is deleted too earl


From: Reimund
Subject: [Octave-bug-tracker] [bug #60150] handle based class is deleted too early
Date: Mon, 1 Mar 2021 07:58:19 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

URL:
  <https://savannah.gnu.org/bugs/?60150>

                 Summary: handle based class is deleted too early
                 Project: GNU Octave
            Submitted by: rayman
            Submitted on: Mon 01 Mar 2021 12:58:17 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Reimund
        Originator Email: 
             Open/Closed: Open
                 Release: 5.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi there,

In Octave 5.2.0 if a class inheriting from handle is used when just using for
function call its classes are deleted before function call.

Octave 6.2.0 is doing properly.

Example:


classdef test < handle
  properties (Access = protected)
    data
  end
  
  methods
    function obj = test()
      obj.data = 5;
    end
    
    function delete(obj)
      obj.data = 0;
    end
  end
end


Test:


length(test())






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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