Bir soru daha ekleyeyim. Su kod CLISP 2.38'de
calismiyor:
 (((lambda () (lambda (x) (* 2 x)))) 20)

Mesaj:

EVAL: ((LAMBDA NIL (LAMBDA (X) (* 2 X)))) is not a
function name; try using a symbol instead

Ama ayni kod Scheme altinda calisiyor: (40 veriyor)

CLisp'in mesaji gayet acik. Benim sorum: bu CLisp'e
mahsus bir davranis mi, yoksa Scheme ile CL'in farkli
oldugu yerlerden biri mi? Yani diger lisp
implementasyonlari da ayni hatayi veriyor mu? Bende
sadece Clisp 2.38 kurulu, simdilik yetiyor bana.

Nusret 







--- nusret <[EMAIL PROTECTED]> wrote:

> Aggh, format bozulmus. Kodu yeniden yapistiriyorum:
> 
> (mapcar #'(lambda (b)
>                 (if (listp (car b))
>                     (mapcar #'(lambda (x)
>                                   (gensym))
>                             (car b))
>                     (gensym)))
>         binds)
> 
> Kusura bakmayin.
> Saygilar,
> 
> Nusret
> 
> 
> 
> 
> --- nusret <[EMAIL PROTECTED]> wrote:
> 
> > Merhaba,
> > CL'in #' operatorunun anonim bir fonksiyon uzerine
> > etkisi var mi? Sunu kasdediyorum:
> > (mapcar #'(lambda (b)                                                       
> >         (if (listp (car b))             
>       
> >     
> > (mapcar #'(lambda (x)                                                       
> >      (gensym))                             
>  
> >  
> >                 (car b))                                            
> > (gensym)))                              
> binds)
> > 
> > koduna (Paul Graham'in On Lisp kitabini okuyorum,
> > orada, sayfa 162'de mvdo icinde geciyor) bakalim
> > (hemen copy-paste yapabilmeniz icin). Bir suredir
> > neden anonim fonksiyon taniminin basina #'
> konduguna
> > bir anlam veremedigim icin, PLA (principle of
> least
> > action :)) uyarinca #' operatorlerini sildim.
> Sanki
> > hicbir fark olmadi gibi. Bu benim bekledigim
> > sonuctu:
> > (ilk Lisp ogrendigim gunlerde uzerimdeki C etkisi
> > yuzunden sasiriyordum) Ama belki bilmedigim bir
> > sebebi
> > vardir bu extra #'larin.
> > 
> > Var mi:)?
> > 
> > Saygilar,
> > 
> > Nusret
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > http://mail.yahoo.com 
> > 
> > _______________________________________________
> > cs-lisp mailing list
> > [email protected]
> > http://church.cs.bilgi.edu.tr/lcg
> > http://cs.bilgi.edu.tr/mailman/listinfo/cs-lisp
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> _______________________________________________
> cs-lisp mailing list
> [email protected]
> http://church.cs.bilgi.edu.tr/lcg
> http://cs.bilgi.edu.tr/mailman/listinfo/cs-lisp
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
cs-lisp mailing list
[email protected]
http://church.cs.bilgi.edu.tr/lcg
http://cs.bilgi.edu.tr/mailman/listinfo/cs-lisp

Cevap