Dynamically typed unsafe variance
Abstract
A program execution engine that facilitates generic type variance verification is provided. The execution engine receives a program executable in the form of intermediate language (IL). The program executable can be based on code that includes expression(s) with generic type(s) which have been identified as requiring variance verification (e.g., covariance and/or contra-variance). The execution engine includes a variance verification component that dynamically determines whether value(s) associated with the generic type(s) identified as requiring variance verification comply with the particular variance verification requirement. The variance verification component can provide error information (e.g., throw an exception), if the specified variance is not safely compliant. Variance verification can be based on static checking which places the burden on a source language compiler to emit the run-time checks in intermediate language (IL), if run-time checked variance is required. Additionally, language(s) that do not support variance can treat generic type(s) as non-variant.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 13.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
At a computer system, the computer system including: one or more processors; system memory; and one or more computer storage media having stored thereon computer executable instructions representing an execution engine, the execution comprising: an input component that receives a program executable including intermediate language instructions, the intermediate language instructions including run-time checks, the run-time checks having been emitted into the intermediate language instructions by a source language compiler during compilation from source language instructions into the intermediate
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (5)
- Juval Lowy, An Introduction to C# Generics, http://msdn.microsoft.com/library/en-us/dnvs05/html/csharp-generics.asp?frame=true, Updated Jan. 2005, last viewed Jul. 13, 2005.
- Juval Lowy, An Introduction to C# Generics, http://msdn.microsoft.com/library/en-us/dnvs05/html/csharp—generics.asp?frame=true, Updated Jan. 2005, last viewed Jul. 13, 2005.
- Mads Torgersen, et al., Adding Wildcards to the Java Programming Language, SAC '04, Mar. 14-17, 2004, Nicosia, Cyprus.
- Narayana Surapaneni, IL "The Language of CLR"-A Platform for Cross-Language, Jun. 28, 2001, http://www.c-sharpcorner.com/UploadFile/nrsurapaneni/ILtheLangOfCLRbyNRS12222005040956AM/ILtheLangOfCLRbyNRS.aspx.
- Narayana Surapaneni, IL “The Language of CLR”—A Platform for Cross-Language, Jun. 28, 2001, http://www.c-sharpcorner.com/UploadFile/nrsurapaneni/ILtheLangOfCLRbyNRS12222005040956AM/ILtheLangOfCLRbyNRS.aspx.