[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55766] properties function should not return
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55766] properties function should not return Hidden properties |
Date: |
Fri, 14 Jun 2019 18:46:09 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #5, bug #55766 (project octave):
I encounter a problem when the value for a classdef parameter is not a string,
but a boolean. Consider the following test class
classdef testprop4
properties (Hidden = true)
anotherhiddentestprop = 0;
end
properties (Hidden = false)
notahiddentestprop = 0;
end
end
In this case, the value for "Hidden" is a boolean. When I run this code I
get
octave:1> testprop4
ans =
testprop4 object with properties:
error: octave_base_value::bool_value(): wrong type argument 'sq_string'
This does not occur for parameters such as "Access" which take a string value
like "public".
(file #47101)
_______________________________________________________
Additional Item Attachment:
File name: testprop4.m Size:0 KB
<https://savannah.gnu.org/file/testprop4.m?file_id=47101>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55766>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/