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] |
The attached patch adds an unrewrite-class function to syntaxutils.scm, to handle the expansion of ClassExps. It's by no means complete, but a significant step up from treating them as LambdaExps (and throwing an error in unrewrite-arglist). Before: #|kawa:1|# (require 'syntax-utils) #|kawa:2|# (expand '(define-simple-class Foo (java.util.ArrayList) ((foo) allocation: 'static #!native))) #<ERROR nyi> After: #|kawa:1|# (require 'syntax-utils) #|kawa:2|# (expand '(define-simple-class Foo (java.util.ArrayList) ((foo) allocation: 'static #!native))) (let ((Foo #!undefined)) (set Foo (class (<java.util.ArrayList>) ((foo) allocation: (quote static) #!native)))) -- Jamison Hope The PTR Group www.theptrgroup.com
Attachment:
syntaxutils_unrewrite-class.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |