More documentation updates
parent
cc2f512287
commit
f2440381cd
|
@ -1,5 +1,5 @@
|
||||||
USING: help.markup help.syntax help words compiler.units
|
USING: help.markup help.syntax help words compiler.units
|
||||||
classes ;
|
classes sequences ;
|
||||||
IN: classes.mixin
|
IN: classes.mixin
|
||||||
|
|
||||||
ARTICLE: "mixins" "Mixin classes"
|
ARTICLE: "mixins" "Mixin classes"
|
||||||
|
@ -10,7 +10,9 @@ ARTICLE: "mixins" "Mixin classes"
|
||||||
{ $subsection add-mixin-instance }
|
{ $subsection add-mixin-instance }
|
||||||
"The set of mixin classes is a class:"
|
"The set of mixin classes is a class:"
|
||||||
{ $subsection mixin-class }
|
{ $subsection mixin-class }
|
||||||
{ $subsection mixin-class? } ;
|
{ $subsection mixin-class? }
|
||||||
|
"Mixins are used to defines suites of behavior which are generally useful and can be applied to user-defined classes. For example, the " { $link immutable-sequence } " mixin can be used with user-defined sequences to make them immutable."
|
||||||
|
{ $see-also "unions" "tuple-subclassing" } ;
|
||||||
|
|
||||||
HELP: mixin-class
|
HELP: mixin-class
|
||||||
{ $class-description "The class of mixin classes." } ;
|
{ $class-description "The class of mixin classes." } ;
|
||||||
|
|
|
@ -140,7 +140,7 @@ $nl
|
||||||
}
|
}
|
||||||
{ $subsection "tuple-inheritance-example" }
|
{ $subsection "tuple-inheritance-example" }
|
||||||
{ $subsection "tuple-inheritance-anti-example" }
|
{ $subsection "tuple-inheritance-anti-example" }
|
||||||
{ $see-also "call-next-method" "parametrized-constructors" } ;
|
{ $see-also "call-next-method" "parametrized-constructors" "unions" "mixins" } ;
|
||||||
|
|
||||||
ARTICLE: "tuple-introspection" "Tuple introspection"
|
ARTICLE: "tuple-introspection" "Tuple introspection"
|
||||||
"In addition to the slot reader and writer words which " { $link POSTPONE: TUPLE: } " defines for every tuple class, it is possible to construct and take apart entire tuples in a generic way."
|
"In addition to the slot reader and writer words which " { $link POSTPONE: TUPLE: } " defines for every tuple class, it is possible to construct and take apart entire tuples in a generic way."
|
||||||
|
|
|
@ -11,7 +11,9 @@ ARTICLE: "unions" "Union classes"
|
||||||
{ $subsection members }
|
{ $subsection members }
|
||||||
"The set of union classes is a class:"
|
"The set of union classes is a class:"
|
||||||
{ $subsection union-class }
|
{ $subsection union-class }
|
||||||
{ $subsection union-class? } ;
|
{ $subsection union-class? }
|
||||||
|
"Unions are used to define behavior shared between a fixed set of classes."
|
||||||
|
{ $see-also "mixins" "tuple-subclassing" } ;
|
||||||
|
|
||||||
ABOUT: "unions"
|
ABOUT: "unions"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue