From 57fb4267ab4c5770b51c2217ca448e4b84ac1718 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Fri, 9 Jul 2010 13:30:15 -0700 Subject: [PATCH] clear up roles docs --- extra/roles/roles-docs.factor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extra/roles/roles-docs.factor b/extra/roles/roles-docs.factor index e499c14db5..f3073e20a7 100644 --- a/extra/roles/roles-docs.factor +++ b/extra/roles/roles-docs.factor @@ -47,7 +47,7 @@ HELP: role-slot-overlap { $class-description "This error is thrown if a " { $link POSTPONE: TUPLE: } " or " { $link POSTPONE: ROLE: } " definition attempts to inherit a set of " { $link role } "s in which more than one attempts to define the same slot." } ; ARTICLE: "roles" "Roles" -"The " { $vocab-link "roles" } " vocabulary implements a way to extend tuple classes that allows them to be composed of multiple roles objects that contain slots." $nl +"The " { $vocab-link "roles" } " vocabulary provides a form of tuple interface that can be implemented by concrete tuple classes. A " { $link role } " definition is a mixin class that also prescribes a set of tuple slots. Roles are not tuple classes by themselves and cannot be instantiated by " { $link new } ". The vocabulary extends " { $link POSTPONE: TUPLE: } " syntax to allow concrete tuple types to declare membership to one or more roles, automatically including their prescribed slots." $nl "The role superclass:" { $subsections role } "Syntax for making a new role:" @@ -56,3 +56,5 @@ ARTICLE: "roles" "Roles" { $subsection POSTPONE: TUPLE: } "Errors with roles:" { $subsections multiple-inheritance-attempted role-slot-overlap } ; + +ABOUT: "roles" -- 2.34.1