emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declaring primitive function types


From: Stefan Monnier
Subject: Re: Declaring primitive function types
Date: Sun, 03 Mar 2024 09:31:59 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> Another option along those lines would be:
>>
>>     DEFUN ("arrayp", Farrayp, Sarrayp, 1, 1, 0,
>>            doc: /* Return t if OBJECT is an array (string or vector).  */
>>            ((type (function (t) boolean))))
>>       (Lisp_Object object)
>>
>> which could accommodate extensions like
>>
>>     DEFUN (...
>>            doc: /* ...  */
>>            ((type (function (t) boolean))
>>             (obsolete "use pcase, of course" "24,1")
>>             (usage (fn ARGS [DOCSTRING] [INTERACTIVE] BODY...))))

In both examples above, there should be a comma right after
the doccomment.  Sorry 'bout that.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]