Changes between Version 14 and Version 15 of MixIn
- Timestamp:
- 07/29/13 11:58:55 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MixIn
v14 v15 3 3 == Introduction == 4 4 5 Provide a non inheritance based capability for shared/common characteristics and behaviour.5 Provide a non inheritance based capability for providing shared/common characteristics and behaviour. 6 6 7 7 Basically, selected traits or characteristics and behaviours are described in a special Type called a 'mixin' (analogous to an interface),[[BR]] … … 26 26 * Mixins cannot be used from a [wiki:BinaryLibrary binary library]. The source must be included for the compiler. 27 27 28 In summary, mixins are more about implementing shared capabilities among the types you are declaring. [[BR]]28 In summary, mixins are more about implementing shared capabilities among the (non common ancestor) types you are declaring. [[BR]] 29 29 Extensions are about adding convenience methods to existing types (regardless of who declared them). 30 30