From: Jamison Hope <jrh@theptrgroup.com>
To: "kawa@sourceware.org list" <kawa@sourceware.org>
Subject: Re: Using Kawa extensions in R7RS libraries
Date: Mon, 13 Apr 2015 05:45:00 -0000 [thread overview]
Message-ID: <851CA162-87C3-4161-BD7D-338E6AC34FEC@theptrgroup.com> (raw)
In-Reply-To: <54E2DE69.2060708@bothner.com>
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
On Feb 17, 2015, at 1:23 AM, Per Bothner <per@bothner.com> wrote:
> On 02/15/2015 12:49 PM, Helmut Eller wrote:
>> Here are two files reflect.scm and all.scm. I added to (kawa all) the
>> stuff that I happened to need; many things that are described in the
>> manual are missing. I'm also not sure that (kawa reflect) is very I
>> usually need the features to access Java libraries and this includes
>> try-catch and define-simple-class.
>
> Thanks. I checked this in.
(kawa reflect) was missing the field setters set-field! and
set-static-field!, patch attached.
--
Jamison Hope
The PTR Group
www.theptrgroup.com
[-- Attachment #2: field-setters.patch --]
[-- Type: application/octet-stream, Size: 1365 bytes --]
Index: kawa/lib/ChangeLog
===================================================================
--- kawa/lib/ChangeLog (revision 8396)
+++ kawa/lib/ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2015-04-13 Jamison Hope <jrh@theptrgroup.com>
+
+ * kawa/reflect.scm (set-field!, set-static-field!): New exports.
+ * kawa/base.scm (set-field!, set-static-field!): Likewise.
+
2015-04-05 Jamison Hope <jrh@theptrgroup.com>
* kawa/quaternions.scm (vector-quaternion?,
Index: kawa/lib/kawa/base.scm
===================================================================
--- kawa/lib/kawa/base.scm (revision 8396)
+++ kawa/lib/kawa/base.scm (working copy)
@@ -32,6 +32,8 @@
invoke-special
field
static-field
+ set-field!
+ set-static-field!
make
instance?
as
Index: kawa/lib/kawa/reflect.scm
===================================================================
--- kawa/lib/kawa/reflect.scm (revision 8396)
+++ kawa/lib/kawa/reflect.scm (working copy)
@@ -4,6 +4,8 @@
invoke-special
field
static-field
+ set-field!
+ set-static-field!
make
instance?
as
@@ -23,6 +25,10 @@
field
static-field)
+ (only (gnu kawa reflect SlotSet)
+ set-field!
+ set-static-field!)
+
(only (rename (gnu kawa reflect Throw)
(primitiveThrow primitive-throw))
primitive-throw)
next prev parent reply other threads:[~2015-04-13 5:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 9:27 Helmut Eller
2015-02-12 17:57 ` Per Bothner
2015-02-15 20:49 ` Helmut Eller
2015-02-17 6:23 ` Per Bothner
2015-02-17 6:37 ` Per Bothner
2015-04-13 5:45 ` Jamison Hope [this message]
2015-04-13 7:32 ` Per Bothner
[not found] ` <CANfjrNW0FFmM3Xp5gX+BNqAbq2Y=C2OiuHYEXv50Y09r9NWipA@mail.gmail.com>
2015-07-05 16:18 ` Per Bothner
2015-07-06 7:30 ` Elías Alonso G.-Cornejo
2015-07-08 14:11 ` Elías Alonso G.-Cornejo
2015-07-12 23:38 ` Per Bothner
2015-07-13 0:16 ` Per Bothner
2015-07-13 9:11 ` Elías Alonso G.-Cornejo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=851CA162-87C3-4161-BD7D-338E6AC34FEC@theptrgroup.com \
--to=jrh@theptrgroup.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).