Wiki

Changes between Version 6 and Version 7 of MixIn

Show
Ignore:
Timestamp:
03/04/09 10:19:24 (16 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MixIn

    v6 v7  
    1111 * Mixins can add properties whereas extensions cannot. 
    1212 * 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). 
    1314 
    1415In 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). 
     
    1819As we gain more experience with using mixins, and as the implementation of mixins matures, some of the following restrictions are likely to be removed: 
    1920 
     21 * Mixins cannot declare initializers. 
    2022 * Mixins cannot inherit from other types. 
    2123 * Mixins cannot implement interfaces.