mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
(scm_m_define): Set 'name procedure property on any
scm_procedure_p, not just SCM_CLOSUREP. In particular this picks up procedures with setters as used in srfi-17.
This commit is contained in:
parent
af34b069b9
commit
0238dc9de2
1 changed files with 1 additions and 1 deletions
|
@ -1235,7 +1235,7 @@ scm_m_define (SCM expr, SCM env)
|
|||
SCM tmp = value;
|
||||
while (SCM_MACROP (tmp))
|
||||
tmp = SCM_MACRO_CODE (tmp);
|
||||
if (SCM_CLOSUREP (tmp)
|
||||
if (scm_is_true (scm_procedure_p (tmp))
|
||||
/* Only the first definition determines the name. */
|
||||
&& scm_is_false (scm_procedure_property (tmp, scm_sym_name)))
|
||||
scm_set_procedure_property_x (tmp, scm_sym_name, variable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue