From: David Pirotte <david@altosw.be>
To: Per Bothner <per@bothner.com>
Cc: kawa <kawa@sourceware.org>
Subject: Re: ImagJ/Fiji 'binding' wrong number of args - help welcome
Date: Mon, 22 Jan 2018 01:49:00 -0000 [thread overview]
Message-ID: <20180121234838.4d4cddf6@capac> (raw)
In-Reply-To: <e2c0511f-ea38-b359-1b40-6d12a5809d6c@bothner.com>
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
Hello Per,
> > But what is 'this' argument, how do I 'grab it' from imagej/fiji plugin?
> That is not a question about Kawa. It is a question about the imagej/fiji plugin.
> How would you get the 'this' argument in a Java program?
> ...
I actually figured it out before to read your 2nd email, but of course thanks a lot
for your answers, and, yes, a java related quizz, plus how to implemented it in
kawa...
It would have been a lot more productive though, if you allow me, to answer (your
first answer) something like [*]
... these methods always expect, as their first _implicit_ argument, an
instance of the class that 'holds' the methods [*]. so in this case:
(define-alias ltw-new sc.fiji.localThickness.LocalThicknessWrapper:new)
(process-image (ltw-ew) iplus)
Cheers,
David
[*] 'this' really didn't mean anything to me
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2018-01-22 1:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-21 1:00 David Pirotte
2018-01-21 7:12 ` Per Bothner
2018-01-21 8:59 ` David Pirotte
2018-01-21 18:42 ` Per Bothner
2018-01-22 1:49 ` David Pirotte [this message]
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=20180121234838.4d4cddf6@capac \
--to=david@altosw.be \
--cc=kawa@sourceware.org \
--cc=per@bothner.com \
/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).