Invention Grant
- Patent Title: Instance interfaces and mix-ins for dynamic languages
-
Application No.: US11888577Application Date: 2007-08-01
-
Publication No.: US09361129B2Publication Date: 2016-06-07
- Inventor: Bertrand Le Roy
- Applicant: Bertrand Le Roy
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agent Kevin Sullivan; Kate Drakos; Micky Minhas
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F11/07

Abstract:
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.
Public/Granted literature
- US20090037895A1 Instance interfaces and mix-ins for dynamic languages Public/Granted day:2009-02-05
Information query