]> gitweb.factorcode.org Git - factor.git/commitdiff
help.handbook: add convention for destructors
authorrazetime <rraghu.11502@gmail.com>
Mon, 19 Feb 2024 15:37:42 +0000 (23:37 +0800)
committerrazetime <rraghu.11502@gmail.com>
Mon, 19 Feb 2024 15:43:01 +0000 (23:43 +0800)
basis/help/handbook/handbook.factor

index 03dd35fd623e7578b28daccaa13f7cc31a476dfa..73c685487009a5bcdb53a6d00c08807913432a0e 100644 (file)
@@ -54,6 +54,7 @@ $nl
     { { $snippet { $emphasis "foo" } "!" } { "a variant of " { $snippet "foo" } " which mutates one of its arguments" } { { $link append! } } }
     { { $snippet "?" { $emphasis "foo" } } { "conditionally performs " { $snippet { $emphasis "foo" } } } { { $links ?nth } } }
     { { $snippet "<" { $emphasis "foo" } ">" } { "creates a new " { $snippet "foo" } } { { $link <array> } } }
+    { { $snippet ">" { $emphasis "foo" } "<" } { "destroys an object of class " { $snippet "foo" } ", usually unpacking its data" } { { $link >slice< } } }
     { { $snippet ">" { $emphasis "foo" } } { "converts the top of the stack into a " { $snippet "foo" } } { { $link >array } } }
     { { $snippet { $emphasis "foo" } ">" { $emphasis "bar" } } { "converts a " { $snippet "foo" } " into a " { $snippet "bar" } } { { $link number>string } } }
     { { $snippet "new-" { $emphasis "foo" } } { "creates a new " { $snippet "foo" } ", taking some kind of parameter from the stack which determines the type of the object to be created" } { { $link new-sequence } ", " { $link new-lexer } ", " { $link new } } }