[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41629] "set (h)" should not return read only
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #41629] "set (h)" should not return read only properties |
Date: |
Tue, 18 Feb 2014 16:12:56 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 |
Follow-up Comment #1, bug #41629 (project octave):
I went ahead to propose a method to determine whether a variable is readonly.
In the attached changeset I modified genprops.awk to generate
readonly_property_names/has_readonly_property methods. They are basically
identical to core_property_names/has_core_property methods except they list
read-only properties.
I also modified set methods in order to let them report if a property is read
only:
octave:2> set (gcf, "type", "toto")
error: set: "type" is read-only
If the approach is approved, I may address this bug.
(file #30596)
_______________________________________________________
Additional Item Attachment:
File name: report_readonly_bug41629.patch Size:4 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41629>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/