[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
> 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.
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ecl-devel