发明名称 CONTRACT PROGRAMMING FOR CODE ERROR REDUCTION
摘要 In one embodiment, a computer system provides an application programming interface (API) for augmenting an application API. A computer system receives software code written in a second programming language indicating a user's intention to augment an application API with contracts from a contract API written in a first programming language. The software code includes a reference to the contract API. The contracts include assertions indicating appropriate use of the application API. The computer system accesses portions of the contract API according to the reference in the software code and compiles the received software code and the referenced portions of the contract API into an intermediate language (IL) version of the software code. The IL version is in an intermediate language common to both the first programming language and the second programming language. The IL version includes the assertions indicating appropriate use of the application API.
申请公布号 CA2704980(C) 申请公布日期 2016.03.22
申请号 CA20082704980 申请日期 2008.11.26
申请人 MICROSOFT CORPORATION 发明人 BARNETT, MICHAEL;FAHNDRICH, MANUEL A.;GRUNKEMEYER, BRIAN M.;SCHULTE, WOLFRAM
分类号 G06F9/30;G06F9/06;G06F9/44;G06F11/08 主分类号 G06F9/30
代理机构 代理人
主权项
地址