Changes between Version 6 and Version 7 of MixIn
- Timestamp:
- 03/04/09 10:19:24 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MixIn
v6 v7 11 11 * Mixins can add properties whereas extensions cannot. 12 12 * Mixin members will be found at run-time via reflection whereas extension members will not. 13 * Mixins create new types. From a VirtualMachine perspective, they are seen as interfaces (since the popular VMs don't support mixins). 13 14 14 15 In summary, mixins are more about multiple inheritance among the types you are declaring. Extensions are about adding convenience methods to existing types (regardless of who declared them). … … 18 19 As we gain more experience with using mixins, and as the implementation of mixins matures, some of the following restrictions are likely to be removed: 19 20 21 * Mixins cannot declare initializers. 20 22 * Mixins cannot inherit from other types. 21 23 * Mixins cannot implement interfaces.