This project is read-only.
1
Vote

getting properties from meta object is different in Octave

description

@getsetobj/proplist.m should have this lines:
--- /tmp/thg.1QW1Iq/iris_clone.11/classlib/@getsetobj/proplist.m
+++ /tmp/thg.1QW1Iq/iris_clone.11.992/classlib/@getsetobj/proplist.m
@@ -24,11 +24,21 @@
     inx = ~[mc.PropertyList.Dependent];
     List = {mc.PropertyList(inx).Name};
 catch %#ok<CTCH>
-    % Compatibility with R2010b.
-    p = [mc.Properties{:}];
-    inx = ~[p.Dependent];
-    List = {p.Name};
-    List = List(inx);
+    try
+        % Compatibility with R2010b.
+        p = [mc.Properties{:}];
+        inx = ~[p.Dependent];
+        List = {p.Name};
+        List = List(inx);
+    catch % Compatibility with Octave.
+        List = [];
+        prList = mc.PropertyList;
+        for px = 1:length(prList)
+          if ~prList{px}.Dependent
+            List = [List, {prList{px}.Name}]; %#ok<AGROW>
+          end
+        end
+    end
 end
 
 end

comments