This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Patch for ListPat.java - take 2


> > If you apply the proposed patch, JEmacs does not build anymore. In 
> > gnu/jemacs/lisp/keymap.el, there is an 'if' expression that 
> contains 
> > more than 3 arguments. This is perfectly legal [Emacs/Common] Lisp 
> > code, but not legal Scheme code...
> 
> This code is presumably mis-compiled, since arguments beyond 
> 3 are ignored by ifp.java.

That's what I noticed after having sent my previous emails.
 
> > So I guess there should be a Lisp-specific 'if' special 
> form, instead 
> > of reusing the Scheme one.
> 
> We can add a "allowElseList" boolean in ipf.java, set by the 
> constructor.  Then we can use VarListPat if allowElseList.
> 
> The test 'obj instanceof Pair' in your original patch might 
> be better 'obj != LList.Empty' to catch impure lists.

Of course!

Dominique



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]