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: David Kastrup
Subject: Re: User-reserved element in byte code vectors
Date: 19 May 2004 08:28:01 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Miles Bader <address@hidden> writes:

> On Tue, May 18, 2004 at 09:17:44AM -0400, Stefan Monnier wrote:
> > Not even necessary.  We can easily do
> > 
> >   (defmacro rcurry (f &rest args)
> >     `(curry rcurry-helper f ,@args))
> > 
> > and make a rcurry-helper subroutine.  And for Richard's permutation of
> > args, we can also do it that way with curry-reorg auxiliary function.
> 
> There is one little wrinkle though -- by the time something like
> `rcurry-helper' gets called, some information has been lost: which args are
> from the funvec, and which are user args.
> 
> So I think you'd have to explicitly include the dividing point, e.g.:
> 
>    (defmacro rcurry (f &rest args)
>      `(curry rcurry-helper (length args) f ,@args))

If one does need a helper, one could probably just do

(defmacro rcurry (f &rest args)
  `(curry rcurry-helper f ,args))

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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