Wiki

Changes between Version 8 and Version 9 of MixIn

Show
Ignore:
Timestamp:
11/06/12 23:03:48 (12 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MixIn

    v8 v9  
    1212 * Mixin members will be found at run-time via reflection whereas extension members will not. 
    1313 * Mixins create new types. From a VirtualMachine perspective, they are seen as interfaces (since the popular VMs don't support mixins). 
     14 * Mixins cannot be used from a [wiki:BinaryLibrary binary library]. The source must be included for the compiler. 
    1415 
    1516In 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).