[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: Ability to document variables like defvar in elisp
From: |
Jean Abou Samra |
Subject: |
Re: Feature request: Ability to document variables like defvar in elisp |
Date: |
Fri, 4 Nov 2022 16:10:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
Le 02/11/2022 à 11:15, Mikael Djurfeldt a écrit :
(define a 5)
(set-object-property! (module-variable (current-module) 'a)
'documentation "The variable a contains a number.")
?
Why not, but I wanted to point out that variable documentation
cannot be done in a way that is consistent with procedure documentation.
It needs to be a different mechanism, tied to the module system, which
brings some restrictions (what about local variables?).
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature