mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
; Improve documentation of "function types"
* doc/lispref/functions.texi (Declare Form): * doc/lispref/objects.texi (Type Specifiers): Improve wording and indexing.
This commit is contained in:
parent
0c32f7521b
commit
6a3e2b88d2
2 changed files with 7 additions and 4 deletions
|
|
@ -2727,12 +2727,15 @@ for the code emitted for the function (@pxref{Native-Compilation
|
|||
Variables}).
|
||||
|
||||
@cindex function type declaration
|
||||
@cindex inferred type of function
|
||||
@item (ftype @var{type} &optional @var{function})
|
||||
Declare @var{type} to be the type of this function. This is used for
|
||||
documentation by @code{describe-function}. Also it can be used by the
|
||||
native compiler (@pxref{Native Compilation}) for improving code
|
||||
generation and for deriving more precisely the type of other functions
|
||||
without type declaration.
|
||||
without type declaration. Functions that have such type declarations
|
||||
will be shown by @kbd{C-h C-f} as having a @dfn{declared type} (as
|
||||
opposed to @dfn{inferred type} of functions without declaration).
|
||||
|
||||
@var{type} is a @dfn{type specifier} (@pxref{Type Specifiers}) in the
|
||||
form @w{@code{(function (@var{arg-1-type} @dots{} @var{arg-n-type})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue