Re: Convert scheme to lisp

On Fri, 03 Aug 2007 18:30:05 +0200, Pascal Costanza wrote:

Andy Chambers wrote:

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?))

Hmm - either this was typed too fast or i miss something ... shouldn't
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



Relevant Pages

  • Re: Convert scheme to lisp
    ... I'm trying to translate a small scheme library to common lisp and came ... (define node-self filter) ... (defun node-self (pred?) ... IMHO, you shouldn't declaim things about other people's code, ...
  • Re: Bodes Amplitude/Phase relation for discrete time systems
    ... Transformations", and they just call it the 'w plane'. ... since the end target is DT the up front spec is also DT. ... CT filter. ... It never got popular in large part because with a bit of effort most of the Laplace-domain techniques have cognates in the z domain (Bode and Nyquist plots, in particular, translate straight across). ...
  • Re: Using NewsProxy to enhance Thunderbird filtering (Was: I think I know the answer but...)
    ... & my replies are inline below: ... Possible one to add to your 3rd party filter solutions: ... similar for slrn, leafnode etc. ...
  • Re: Lowpass equivalent spectrum
    ... Signal energy is irrelevant in this context. ... Convert BP spec to LP equivalent spec ... Design an LP protoytype filter from the ... Translate LP prototype filter to desired ...
  • RE: [Full-Disclosure] RE: By passing surf control
    ... We use Surf Control to monitor and filter web ... You can just use the google translate feature and add any url you want to the end of it. ... It acts as a proxy and gets the page for you and translates it from english to english... ...