|
From: | Paul Eggert |
Subject: | Re: Function attributes for make-docfile |
Date: | Sun, 11 Jan 2015 21:49:02 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
Dmitry Antipov wrote:
DEFUN ("eq", Feq, Seq, 2, 2, 0, doc: /* Return t if the two args are the same Lisp object. */) +/* CONST */
Good idea, but I worry that the comments are fragile. How about the following idea for improving the proposed syntax? Move the directives to be inside the DEFUN, making it clearer that they're part of the function definition mechanism. Something like this, say:
DEFUN ("eq", Feq, Seq, 2, 2, 0, doc: /* Return t if the two args are the same Lisp object. */ attribute: const) and similarly for 'noreturn' instead of (or in addition to) 'const'.
[Prev in Thread] | Current Thread | [Next in Thread] |