]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/delegate/delegate-docs.factor
Have method combinations themselves make their consultation quotations.
[factor.git] / basis / delegate / delegate-docs.factor
index 0c9a0dd9d753783d1d830a49d929aea6fd6d3af0..0d8781ab8a1b190212da8120c9524ca0a2b05bc3 100644 (file)
@@ -23,12 +23,6 @@ HELP: CONSULT:
 { $values { "group" "a protocol, generic word or tuple class" } { "class" "a class" } { "code" "code to get the object to which the method should be forwarded" } }
 { $description "Declares that objects of " { $snippet "class" } " will delegate the generic words contained in " { $snippet "group" } " to the object returned by executing " { $snippet "code" } " with the original object as an input. " { $snippet "CONSULT:" } " will overwrite any existing methods on " { $snippet "class" } " for the members of " { $snippet "group" } ", but new methods can be added after the " { $snippet "CONSULT:" } " to override the delegation." } ;
 
-HELP: HOOK-CONSULT:
-{ $syntax "HOOK-CONSULT: group class var
-    code ;" }
-{ $values { "group" "a protocol, generic word or tuple class" } { "class" "a class" } { "var" "a variable" } { "code" "code to get the object to which the method should be forwarded" } }
-{ $description "Declares that objects of " { $snippet "class" } " will delegate the generic words contained in " { $snippet "group" } " to the object returned by executing the same word but with " { $snippet "var" } " re-bound to the value produced by" { $snippet "code" } ". It is your responsibility to ensure that the correct " { $snippet "var" } " is named, and that the code produces a value which can be stored in that " { $snippet "var" } "." } ;
-
 HELP: BROADCAST:
 { $syntax "BROADCAST: group class
     code ;" }