aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2024-05-14 10:37:31 +0200
committerAndrea Corallo2024-05-14 11:17:25 +0200
commite0cbed16b4573e0d6f848a4e239d559eeff08d95 (patch)
tree641f0ff461b075d6e759842fb285be6599fedf0a
parentb87670b56460185bec902806daa52b05faa5d26d (diff)
downloademacs-e0cbed16b4573e0d6f848a4e239d559eeff08d95.tar.gz
emacs-e0cbed16b4573e0d6f848a4e239d559eeff08d95.zip
* etc/NEWS: Rename 'type' -> 'ftype' and tweak it.
-rw-r--r--etc/NEWS9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 632b9d4c1d7..34052764f5f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2488,16 +2488,17 @@ and see if you get only warnings that matter.
2488** Function 'declare' forms 2488** Function 'declare' forms
2489 2489
2490+++ 2490+++
2491*** New 'type' function declaration. 2491*** New 'ftype' function declaration.
2492The declaration '(type TYPE)' specifies the type of a function. 2492The declaration '(ftype TYPE)' specifies the type of a function.
2493Example: 2493Example:
2494 2494
2495 (defun hello (x y) 2495 (defun hello (x y)
2496 (declare (type (function (integer boolean) string))) 2496 (declare (ftype (function (integer boolean) string)))
2497 ...) 2497 ...)
2498 2498
2499specifies that the function takes two arguments, an integer and a 2499specifies that the function takes two arguments, an integer and a
2500boolean, and returns a string. This information can be used by the 2500boolean, and returns a string. If the compilation happens with
2501'compilation-safety' set to zero, this information can be used by the
2501native compiler to produce better code, but specifying an incorrect type 2502native compiler to produce better code, but specifying an incorrect type
2502may lead to Emacs crashing. See the Info node "(elisp) Declare Form" 2503may lead to Emacs crashing. See the Info node "(elisp) Declare Form"
2503for further information. 2504for further information.