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: Mike Miller
Subject: [Octave-bug-tracker] [bug #53844] handle class: delete destructor method cannot access class properties
Date: Fri, 11 May 2018 19:26:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

Yeah, it doesn't even have to be a method, and the function doesn't even have
to access the object at all, it just has to be on the argument list. So this
is probably down in the evaluator, and something to do with the object being
destroyed affecting the result of the overall expression.


function r = somefunc (varargin)
  r = 12
endfunction

## No semicolon on the assignment so it's obvious that r is set

>> x = dummy;
>> somefunc (x)
r =  12
ans =  12
>> somefunc (pi)
r =  12
ans =  12
>> somefunc (pi, x)
r =  12
ans =  12
>> somefunc (pi, dummy)
r =  12
>> 


    _______________________________________________________

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]