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

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

[Octave-bug-tracker] [bug #55887] Edit changes to classdef object are se


From: anonymous
Subject: [Octave-bug-tracker] [bug #55887] Edit changes to classdef object are seen(executed) after saving file and re-initializiing the object
Date: Mon, 11 Mar 2019 20:01:51 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134

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

                 Summary: Edit changes to classdef object are seen(executed)
after saving file and re-initializiing the object
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 12 Mar 2019 12:01:48 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Del Johnson
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

sample code:
 

classdef testprop

        properties
                test = 0;
        end

        properties (Access = protected)
                protectedtestprop = 0;
        end

        properties (Hidden = true)
                hiddentestprop = 0;
        end

end


After creating the classdef and saving it the following code works:
>> t = testprop
t =

<object testprop>

>> t.test
ans = 0
>> t.test

if I re-edit testprop and change the value of property test followed by saving
the file, the result returned is still ans = 0.  The same is true if I create
addition code or properties.  The return unknown errors when accessed.

If I quit octave and then re-start it the changes that were made prevously do
execute successfully.  But if I make additional edit changes they are not seen
when initializing the class and displaying the property that was changed in
the edit process.

This problem is limited to classdef.m files.  I create a simple function in a
separate file. Executed it.  Then made changes and saved it followed by
calling the function again, which did execute the changes successfully.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 12 Mar 2019 12:01:48 AM UTC  Name: testprop.m  Size: 186B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=46501>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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