]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/macros/macros-docs.factor
macros: macro body is now defined in its own subword, for compile-time stack effect...
[factor.git] / basis / macros / macros-docs.factor
index 102bc79c7e7aff1ad32c498ae3f233b589097350..9d9f8f4caf9ec5a51af0555f2798b0ee52ee852a 100644 (file)
@@ -47,9 +47,7 @@ $nl
 $nl
 "Defining new macros:"
 { $subsections POSTPONE: MACRO: }
-"A slightly lower-level facility, " { $emphasis "compiler transforms" } ", allows an ordinary word definition to co-exist with a version that performs compile-time expansion."
-{ $subsections define-transform }
-"An example is the " { $link member? } " word. If the input sequence is a literal, the compile transform kicks in and converts the " { $link member? } " call into a series of conditionals. Otherwise, if the input sequence is not literal, a call to the definition of " { $link member? } " is generated."
+"As with parsing words, macros cannot be used from the same source file that they are defined in."
 { $see-also "generalizations" "fry" } ;
 
 ABOUT: "macros"