Ar an séú lá déag de mí Feabhra, scríobh Mats Lidell:
>>>>> Aidan Kehoe <kehoea(a)parhasard.net>
writes:
Aidan> Ar an séú lá déag de mí Feabhra, scríobh Mats Lidell:
Aidan> Not in practice, none of the modules appear to use it. But if
Aidan> people felt it appropriate to export acons(), then it's equally
Aidan> appropriate to export Facons() to the modules. I've just
Aidan> committed the below, thanks for the reports.
No problem. I understood I was in deep water so I didn't want to
submit my fix. ;-)
I don't really understand how Facons can replace acons. Or was it that
acons was the symbol to make external while it was implemented in lisp
and Facons is the c-code symbol? So if a module now would like to use
acons it should link, use, to the Facon symbol? Modules need to know
if the function is implemented in C or in lisp?
In a way, yes. The internals manual says this (and this is actually the only
part of the internals manual relevant to this question):
‘All C functions that are Lisp primitives begin with a capital F, and no
others should begin this way.’
It’s not a big deal one way or the other, any call to acons (X, Y, Z) is
equivalent to Fcons (Fcons (X, Y), Z), and any incompatibility can be
eliminated by using the latter form.
But I should very, very probably read some internals documents since
I
don't know a thing about how lisp interfaces to C in XEmacs. Is it
RTFM again? ;-)
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches