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

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

[Octave-bug-tracker] [bug #53844] handle class: delete destructor method


From: Rik
Subject: [Octave-bug-tracker] [bug #53844] handle class: delete destructor method cannot access class properties
Date: Fri, 11 May 2018 19:21:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #7, bug #53844 (project octave):

Confirmed.  I modified the file dummy.m to have keyboard statements for each
method and then I was able to trace things through.  For some reason, having
any sort of delete method is causing output to be skipped.


classdef dummy < handle

  properties
    id
  endproperties

  methods

    function self = dummy (id)
      keyboard;
      if (nargin < 1)
        id = 'dummy';
      endif
      self.id = id;
    endfunction

    function delete (self)
      keyboard;
      # fprintf (stderr, '');
    endfunction

    function r = isa (self, klass)
      keyboard;
      r = isequal (self.id, klass);
    endfunction

  endmethods

endclassdef




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53844>

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




reply via email to

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