发明名称 RESOURCE ACCESS SAFETY THROUGH IMMUTABLE OBJECT TYPES
摘要 A language extension that advances safety in system programming in that an entire type may be declared to be immutable in the case in which all instances of that type are immutable. The immutable type declaration automatically causes any instances of that type to be treated as immutable, and automatically causes all directly or indirectly reachable members (e.g., fields, methods, properties) of the instance to also be treated as immutable. Furthermore, any construction time reference that allows for field assignment of the instance is not permitted to survive beyond the point at which the instance becomes accessible to its creator. Accordingly, this instance, and any other instance of that same type, will be immutable from the very time of construction. The ability to classify all such instances as immutable is beneficial as the immutable characteristic permits actions that normally would not be allowed due to resource access safety.
申请公布号 US2015324175(A1) 申请公布日期 2015.11.12
申请号 US201514750416 申请日期 2015.06.25
申请人 Microsoft Technology Licensing, LLC 发明人 Duffy John J.;Parsons Jared Porter;Sinz Michael;Bromfield Alexander Daniel;Cwalina Krzysztof J.
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 代理人
主权项
地址 Redmond WA US