[Ecls-list] Overwriting cl functions

Juan Jose Garcia-Ripoll juanjose.garciaripoll at gmail.com
Tue Jan 29 14:22:01 UTC 2013


On Tue, Jan 29, 2013 at 3:07 PM, Peter Enerccio <enerccio at gmail.com> wrote:

>
> I wanted to ask if it is possible to overwrite functions in common-lisp
> package.
> I know I can do it in c level, but I would rather do it in lisp level, if
> it is possible.


You can unlock the package, redefine the function and go. However, note
that the compiler will still generate code that calls the original C
function. It is a better practice normally to use a package with shadowing
symbols: it does not have this problem and its consequences, unlike symbol
redefinitions, are not undefined as per the ANSI Standard.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130129/15506a7f/attachment.html>


More information about the ecl-devel mailing list