emacs-devel
[Top][All Lists]
Advanced

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

Re: User-reserved element in byte code vectors


From: Miles Bader
Subject: Re: User-reserved element in byte code vectors
Date: Wed, 19 May 2004 20:31:29 -0400
User-agent: Mutt/1.3.28i

On Wed, May 19, 2004 at 11:19:15AM -0400, Stefan Monnier wrote:
> I'd be interested to see how you use those `curry' thingies, BTW.
> E.g. what does
> 
>      (let ((x 0))
>        (lambda () (setq x (+ x 1))))
> 
> get translated into?

Essentially:

   (let ((env (vector 0)))
     (curry env (lambda (env) (aset env 0 (+ (aref env 0) 1)))))

[of course, `env' is not visible to the user code]

-Miles
-- 
97% of everything is grunge




reply via email to

[Prev in Thread] Current Thread [Next in Thread]