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

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

[Octave-bug-tracker] [bug #45893] classdefs are cached by GUI


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #45893] classdefs are cached by GUI
Date: Mon, 07 Sep 2015 17:39:34 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

Follow-up Comment #1, bug #45893 (project octave):

If you 'clear all' (or clear -classes) then it looks like Octave picks up the
new class properties. In Matlab a 'clear' is sufficient.


MATLAB:

>> f=classfoo()

f = 

  classfoo with properties:

     bar: 'value'
    bar2: 1


%% Now modify the classfoo.m file to add a new property.


>> g=classfoo()
Warning: The class file for 'classfoo' has been changed, but the change cannot
be applied because objects based on the
old class file still exist. If you use those objects, you might get unexpected
results. You can use the 'clear'
command to remove those objects. See 'help clear' for information on how to
remove those objects. 

g = 

  classfoo with properties:

     bar: 'value'
    bar2: 1

>> clear
>> g=classfoo()

g = 

  classfoo with properties:

     bar: 'value'
    bar2: 1
    bar3: 'test'


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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