Re: Convert scheme to lisp
- From: Ralf Mattes <rm@xxxxxxxxxxxxxx>
- Date: Fri, 3 Aug 2007 22:13:18 +0000 (UTC)
On Fri, 03 Aug 2007 18:30:05 +0200, Pascal Costanza wrote:
Andy Chambers wrote:Hmm - either this was typed too fast or i miss something ... shouldn't
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?))
that be:
(declaim (inline filer))
(defun node-self (pred?)
(filter pred?))
Cheers, Ralf Mattes
The other suggestions to use defvar or defparameter lead in the wrong.
direction.
Pascal
- Follow-Ups:
- Re: Convert scheme to lisp
- From: Pascal Costanza
- Re: Convert scheme to lisp
- From: Ralf Mattes
- Re: Convert scheme to lisp
- References:
- Convert scheme to lisp
- From: Andy Chambers
- Re: Convert scheme to lisp
- From: Pascal Costanza
- Convert scheme to lisp
- Prev by Date: Re: Elegant weapons for a more ... civilized age.
- Next by Date: Re: Convert scheme to lisp
- Previous by thread: Re: Convert scheme to lisp
- Next by thread: Re: Convert scheme to lisp
- Index(es):
Relevant Pages
|