发明名称 Instance interfaces and mix-ins for dynamic languages
摘要 Various technologies and techniques are disclosed for using contracts in dynamic languages. For example, a contract can be directly associated with an object. The contract can then be used to provide type safety for the object. As another example, contracts can be used with mix-ins. A declaration for a contract is provided with a mix-in. The contract is associated with a target object at runtime when applying the mix-in. Conditions can be assigned to mix-ins that must be met before the mix-in can be applied to the target object. At runtime, if the target object meets the one or more conditions, then the mix-in can be applied to the target object.
申请公布号 US2009037895(A1) 申请公布日期 2009.02.05
申请号 US20070888577 申请日期 2007.08.01
申请人 MICROSOFT CORPORATION 发明人 LE ROY BERTRAND
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址