This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with android: couldn't find static field


On 11/09/2010 02:01 AM, Peter Feigl wrote:
On Tue, Nov 09, 2010 at 03:11:57PM +0530, Santosh Rajan wrote:
Also have a look at the latest example here which is much simpler.
http://per.bothner.com/blog/2010/AndroidHelloScheme/


Thanks for the swift answer, I never found that blog post (nor your own blog posts) when googling.

My fault - I uploaded that page, but not the links to it, because I was waiting until I
had Kawa 1.11 released. I.e. I deliberable making it non-googleable.
(Which I had hoped to do yesterday, but I made an uploading
mistake, so now I have to wait until the upload resets.)


This makes things much simpler ;)
I've been trying to create macros and code that allow me to create an android list based on two functions,
one that returns the data, and one that creates the views. For this, I tried to subclass ArrayAdapter, but
then I found I had to store the view creation function in the class. How can I declare a member field in a
java class that has a type that allows me to store arbitrary functions? What is the correct type: to use?

You could use the type 'procedure', as in:


(define-simple-class my-class (...)
  (myField ::procedure))

The :: syntax is equivalent to type:
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]