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: Kawa on Android - unable to use 'for-each' form


On 03/17/2011 09:26 PM, Benny Tsai wrote:
Hello Kawaites,

Sorry to be a pest, but I've run into another issue while trying to
write Android applications in Kawa Scheme: I can't use the 'for-each'
form in my code.  A sample activity for testing this:

(require 'android-defs)
(activity
  hello
  (on-create-view
   (let ((tv (android.widget.TextView (this))))
     (tv:setText "Hello, Android from Kawa Scheme!\n")
     (for-each (lambda (x)
		(tv:append "hi\n"))
	      '(1 2 3))
     tv)))

I tried this with two versions of Kawa 1.11 from source: 1.11 from ftp
(ftp://ftp.gnu.org/pub/gnu/kawa/kawa-1.11.tar.gz), and the latest from
SVN (rev. 6926).  I'm on Windows, so both were compiled via "ant
-Denable-android=true".

With the SVN source, the code does not compile; "ant debug" gets stuck
at the scompile stage.

I have good news and bad news.


The good news is that your activity compiles and runs for me,
using the SVN sources.

The bad news is I don't know why it doesn't work for you ...
--
	--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]