Difference between revisions of "Talk:Transient Attributes"
m (Added a question on inheriting volatile attributes by an expanded class) |
|||
Line 3: | Line 3: | ||
::--[[User:Alexander Kogtenkov|Alexander Kogtenkov]] 16:16, 1 July 2009 (UTC) In other words, an expanded class has to redefine any attributes declared in parent class as volatile, right? | ::--[[User:Alexander Kogtenkov|Alexander Kogtenkov]] 16:16, 1 July 2009 (UTC) In other words, an expanded class has to redefine any attributes declared in parent class as volatile, right? | ||
--[[User:Clemahieu|Clemahieu]] 16:07, 1 July 2009 (UTC) | --[[User:Clemahieu|Clemahieu]] 16:07, 1 July 2009 (UTC) | ||
− | What are the semantics around a note clause under an attribute? This looks like a weaker form of C# attributes, is this intended to be a one-off things for serialization? | + | What are the semantics around a note clause under an attribute? This looks like a weaker form of C# attributes, is this intended to be a one-off things for serialization? EDIT: Are these only accessible within the compiler or are they accessible programatically? |
Revision as of 09:07, 1 July 2009
--Alexander Kogtenkov 15:28, 30 June 2009 (UTC) What happens when the attribute is inherited? It is still possible to inherit the volatile attribute in an expanded class. Or does the volatile property work only in the class it is declared, i.e. the property of being volatile is not inherited?
- --manus 15:06, 1 July 2009 (UTC) The validity rules are applied for inherited attributes as well, and the volatile property is inherited. In order to not inherit it, you have to redefine the attribute.
- --Alexander Kogtenkov 16:16, 1 July 2009 (UTC) In other words, an expanded class has to redefine any attributes declared in parent class as volatile, right?
--Clemahieu 16:07, 1 July 2009 (UTC) What are the semantics around a note clause under an attribute? This looks like a weaker form of C# attributes, is this intended to be a one-off things for serialization? EDIT: Are these only accessible within the compiler or are they accessible programatically?