[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55961] properties function does not preserve
From: |
ImadES |
Subject: |
[Octave-bug-tracker] [bug #55961] properties function does not preserve order |
Date: |
Mon, 10 Jun 2019 08:27:55 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0 |
Follow-up Comment #2, bug #55961 (project octave):
Hi,
I think attention should also be paid to cases involving inheritance.
*Additional examples*
Here are two such cases, based on a common ancestor:
classdef prop_tester_1
properties
ff_from_1
dd_from_1
a_from_1
ee_from_1
b_from_1
c_from_1
cc_from_1
bb_from_1
end
end
classdef prop_tester_2 < prop_tester_1
properties
f_from_2
d_from_2
e_from_2
end
end
classdef prop_tester_3 < prop_tester_2
properties
ccc_from_3
bbb_from_3
aaa_from_3
eee_from_3
end
end
*Results with Matlab R2019a Update 2*
>> properties(prop_tester_1)
Properties for class prop_tester_1:
ff_from_1
dd_from_1
a_from_1
ee_from_1
b_from_1
c_from_1
cc_from_1
bb_from_1
>> properties(prop_tester_2)
Properties for class prop_tester_2:
f_from_2
d_from_2
e_from_2
ff_from_1
dd_from_1
a_from_1
ee_from_1
b_from_1
c_from_1
cc_from_1
bb_from_1
>> properties(prop_tester_3)
Properties for class prop_tester_3:
ccc_from_3
bbb_from_3
aaa_from_3
eee_from_3
f_from_2
d_from_2
e_from_2
ff_from_1
dd_from_1
a_from_1
ee_from_1
b_from_1
c_from_1
cc_from_1
bb_from_1
Notice how the ancestor are looped over, from the most recent to the
furthest.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55961>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55961] properties function does not preserve order,
ImadES <=