[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

let bindings



I've been looking at some of the code in slib (I have gotten psd to work on 
NT emacs!) and I was wondering about the let bindings used in function 
definitions
(define xxx
  (let ((car car)
        (cdr cdr)
        (cons cons)
         ....)
    (lambda (...) )))


I realize that these symbols may be rebound in scheme, so that this 
guarantees that car in the function body actually uses the function car was 
bound to at the moment of definition of the function.
All this seems rather inelegant to me and not bulletproof (car may be 
rebound before the define is evaluated), should I be writing my scheme 
functions like this from now on?
Any comments anyone?
Immanuel


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.