From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120828 invoked by alias); 22 Jan 2018 01:49:01 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 120816 invoked by uid 89); 22 Jan 2018 01:49:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*F:D*be, H*r:sk:dynamic, Hx-languages-length:902 X-HELO: maximusconfessor.all2all.org Received: from maximusconfessor.all2all.org (HELO maximusconfessor.all2all.org) (79.99.200.102) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Jan 2018 01:48:59 +0000 Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 76573A04C117; Mon, 22 Jan 2018 02:48:56 +0100 (CET) Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id mFgA5d6Hca1t; Mon, 22 Jan 2018 02:48:52 +0100 (CET) Received: from capac (177.205.170.217.dynamic.adsl.gvt.net.br [177.205.170.217]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 30469A04C114; Mon, 22 Jan 2018 02:48:50 +0100 (CET) Date: Mon, 22 Jan 2018 01:49:00 -0000 From: David Pirotte To: Per Bothner Cc: kawa Subject: Re: ImagJ/Fiji 'binding' wrong number of args - help welcome Message-ID: <20180121234838.4d4cddf6@capac> In-Reply-To: References: <20180120225959.315c0608@capac> <39453e2b-700e-385c-88a5-164c58a6a1a8@bothner.com> <20180121065856.51dcae4b@capac> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/SVzd4Cbm+OYhoKmIOt4dG3I"; protocol="application/pgp-signature" X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00020.txt.bz2 --Sig_/SVzd4Cbm+OYhoKmIOt4dG3I Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-length: 858 Hello Per, > > But what is 'this' argument, how do I 'grab it' from imagej/fiji plugin= ?=20=20 > That is not a question about Kawa. It is a question about the imagej/fij= i 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 than= ks a lot for your answers, and, yes, a java related quizz, plus how to implemented i= t 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 --Sig_/SVzd4Cbm+OYhoKmIOt4dG3I Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature Content-length: 488 -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAlplQvYACgkQ83T9k6MF etdseAgA4ZChicuMEn5EBaJB1+DMSnPiSMBjDtStrqB2IWeGtcFC1fe/NYPHMa9w B0Brx0YviSIt8iENEBDjgA28OHEOv/+ZCHt1dDkwOqShjzRCwqoO+fAi9PVVQkFV iCc+rXoY27XkgWaiz3bzrbT/QUlCdu/yXCsr7DRrBtxps217jVqGXJmpfmiDCSvp 4l9ekO7JlDy+SMZuDq3PZOb1QDgpWJVabN3i6+jt0/JSjQmnc1MXVFvGPLumNfl5 jPhxTSMJyobCTXQJhPHdnA7i2egZtdOCH0nfVAP/3fB6amuyZG640h+7FsIzFLj6 AILdg5d5uHe5EOHptFeGzzVumvoDtg== =jlKm -----END PGP SIGNATURE----- --Sig_/SVzd4Cbm+OYhoKmIOt4dG3I--