Resource access safety through immutable object types
Abstract
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer system, comprising: one or more processors; and one or more computer-readable media having stored thereon instructions that are executable by the one or more processors, and that configure the computer system to ensure multiple instances of an object type are immutable, including instructions that configure the computer system to perform at least the following: access, by a compiler, a declaration in software source code, the declaration identifying that the object type is immutable; and based at least on accessing the declaration, perform, by the compiler, at least the following: f
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "D Programming Language: Attributes", Available at least as early as Apr. 2012, 8 pages. Available at <<https://web.archive.org/web/20120402231813/http:/dlang.org/attribute.
- "D Programming Language: Change Log", Available at least as early as Jan. 2012, 74 pages. Available at <<https://web.archive.org/web/20120110201529/http:/dlang.org/changelog.html>>.
- "D Programming Language: Const and Immutable", Available at least as early as Jan. 2012, 6 pages. Available at <<https://web.archive.org/web/20120110201814/http:/dlang.org/const3.html>>.
- "Office Action Issued in Mexico Patent Application No. MX/a/2015/008715", dated May 2, 2017, 4 Pages.
- "ResourceDictionary and StaticResource References (Windows Store apps using C#/VB/C++ and XAML) (Windows)", Retrieved on: Jan. 29, 2013, Available at: http://msdn.microsoft.com/en-in/library/windows/apps/hh968442.aspx.