Doc fixes
parent
4b219373a5
commit
e84dec38ef
|
@ -65,7 +65,7 @@ HELP: [wlet
|
||||||
|
|
||||||
HELP: ::
|
HELP: ::
|
||||||
{ $syntax ":: word ( bindings... -- outputs... ) body... ;" }
|
{ $syntax ":: word ( bindings... -- outputs... ) body... ;" }
|
||||||
{ $description "Defines a word with named inputs; it reads stack values into bindings from left to right, then executes the body with those bindings in lexical scope. Any " { $link POSTPONE: [| } ", " { $link POSTPONE: [let } " or " { $link POSTPONE: [wlet } " forms used in the body of the word definition are automatically closure-converted." }
|
{ $description "Defines a word with named inputs; it reads stack values into bindings from left to right, then executes the body with those bindings in lexical scope." }
|
||||||
{ $notes "The output names do not affect the word's behavior, however the compiler attempts to check the stack effect as with other definitions." }
|
{ $notes "The output names do not affect the word's behavior, however the compiler attempts to check the stack effect as with other definitions." }
|
||||||
{ $examples "See " { $link POSTPONE: [| } ", " { $link POSTPONE: [let } " and " { $link POSTPONE: [wlet } "." } ;
|
{ $examples "See " { $link POSTPONE: [| } ", " { $link POSTPONE: [let } " and " { $link POSTPONE: [wlet } "." } ;
|
||||||
|
|
||||||
|
|
|
@ -573,12 +573,12 @@ $nl
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
HELP: initial:
|
HELP: initial:
|
||||||
{ $syntax "TUPLE: ... { \"slot\" initial: value } ... ;" }
|
{ $syntax "TUPLE: ... { slot initial: value } ... ;" }
|
||||||
{ $values { "slot" "a slot name" } { "value" "any literal" } }
|
{ $values { "slot" "a slot name" } { "value" "any literal" } }
|
||||||
{ $description "Specifies an initial value for a tuple slot." } ;
|
{ $description "Specifies an initial value for a tuple slot." } ;
|
||||||
|
|
||||||
HELP: read-only
|
HELP: read-only
|
||||||
{ $syntax "TUPLE: ... { \"slot\" read-only } ... ;" }
|
{ $syntax "TUPLE: ... { slot read-only } ... ;" }
|
||||||
{ $values { "slot" "a slot name" } }
|
{ $values { "slot" "a slot name" } }
|
||||||
{ $description "Defines a tuple slot to be read-only. If a tuple has read-only slots, instances of the tuple should only be created by calling " { $link boa } ", instead of " { $link new } ". Using " { $link boa } " is the only way to set the value of a read-only slot." } ;
|
{ $description "Defines a tuple slot to be read-only. If a tuple has read-only slots, instances of the tuple should only be created by calling " { $link boa } ", instead of " { $link new } ". Using " { $link boa } " is the only way to set the value of a read-only slot." } ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue