This is the mail archive of the kawa@sourceware.org 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: Macros for Android


On 07/26/2012 12:49 AM, Per Bothner wrote:
The problem is that object.scanClassDef doesn't handle
a syntax object - just raw symbols.  This is a bug (maybe not if
you're a super-hard-core hygiene purist).

The attached patch seems to work. -- --Per Bothner per@bothner.com http://per.bothner.com/
Index: kawa/standard/object.java
===================================================================
--- kawa/standard/object.java	(revision 7270)
+++ kawa/standard/object.java	(working copy)
@@ -305,6 +305,8 @@
 	  { // Method declaration.
 	    Pair mpair = (Pair) pair_car;
 	    Object mname = mpair.getCar();
+            while (mname instanceof SyntaxForm)
+              mname = ((SyntaxForm) mname).getDatum();
 	    if (! (mname instanceof String)
 		&& ! (mname instanceof Symbol))
 	      {

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