Re: Convert scheme to lisp
- From: Pascal Costanza <pc@xxxxxxxxx>
- Date: Fri, 03 Aug 2007 18:30:05 +0200
Andy Chambers wrote:
Hi,
I'm trying to translate a small scheme library to common lisp and came
across something I'm not sure how to translate.
Given the definition,
(define (filter pred?)
.....)
the scheme library defines what looks like an alias
(define node-self filter)
I tried
(setf (symbol-function 'node-self)
(function filter))
and I think it does what I want but I get compile warnings that node-
self isn't defined. Is there another way of doing this that avoids
the warnings?
(declaim (inline node-self))
(defun node-self (pred?)
(filter pred?))
The other suggestions to use defvar or defparameter lead in the wrong direction.
Pascal
--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/
.
- Follow-Ups:
- Re: Convert scheme to lisp
- From: Ralf Mattes
- Re: Convert scheme to lisp
- References:
- Convert scheme to lisp
- From: Andy Chambers
- Convert scheme to lisp
- Prev by Date: Re: temporal functions
- Next by Date: Re: Elegant weapons for a more ... civilized age.
- Previous by thread: Re: Convert scheme to lisp
- Next by thread: Re: Convert scheme to lisp
- Index(es):
Relevant Pages
|