This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
how to define/put into Environment with type hints?
- From: Sonny To <son dot c dot to at gmail dot com>
- To: Kawa mailing list <kawa at sourceware dot org>
- Date: Wed, 20 Sep 2017 15:36:28 +0300
- Subject: how to define/put into Environment with type hints?
- Authentication-results: sourceware.org; auth=none
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