From: Ken A. <kan...@bb...> - 2004-06-21 14:12:07
|
The following shows that #{} and {} behave differently. (define (show x) (display {[x]\n}) #t) (define (show# x) (display #{#[x]#\n}#) #t) > (show (map (lambda (i) #{import #[i]##[semi]#\n}#) '(foo bar baz))) import foo; import bar; import baz; #t > (show# (map (lambda (i) #{import #[i]##[semi]#\n}#) '(foo bar baz))) (import foo; import bar; import baz; ) #t The parens should not be there. Iv'e fixed !#{} to be the same as !{}. Another issue is that when generating a Java statement with a ";'" at the end will confuse EMACS paren matching. I've found 2 solutions to this: S1: escape back to scheme #[#\;]# to write the ";" in a way that Emacs will handle properly, or #[semi]# with (define semi ";"). S2: Put the ";" as the last character of a line: #{import #[import]#; }# I hope to have an example of generating a Java Bean. k |