public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Sonny To <son.c.to@gmail.com>
To: Kawa mailing list <kawa@sourceware.org>
Subject: how to define/put into Environment with type hints?
Date: Wed, 20 Sep 2017 12:36:00 -0000	[thread overview]
Message-ID: <CAJxjsJtD7+mqb6LtfpofpNcRqvGFbrYDEQvmZhJQ_Nv-LADeow@mail.gmail.com> (raw)

I tried something like this

env.put(Symbol.valueOf("application"), Symbol.makeUninterned("::
android.app.Application"),application)

the result I want is
(define application :: android.app.Application application)


if I do, env.put(Symbol.valueOf("application"),application) accessing
application from the repl will
give warnings about missing symbols because its treated as an
java.lang.Object. I don't want to explicitly cast every time i want to
invoke a method or property of application

thanks,
Sonny

             reply	other threads:[~2017-09-20 12:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-20 12:36 Sonny To [this message]
2017-09-20 13:17 ` Per Bothner

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=CAJxjsJtD7+mqb6LtfpofpNcRqvGFbrYDEQvmZhJQ_Nv-LADeow@mail.gmail.com \
    --to=son.c.to@gmail.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).