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] | |
Hi all!
I'm completely new to kawa and I have a few questions. I wrote a simple macro
which is:
(define-macro (pp arg)
`(begin (display ,arg) (newline)))
Now I'm trying to use this macro, because it's annoying to always have to write
the newline after a display... Now if I do something like:
(pp (<java.lang.Math>:sqrt 9.0))
I get the following error after having compiled the file:
Inv.scm:72:5: unbound location <java.lang.Math>:sqrt
at gnu.mapping.Location.get(Location.java:67)
at Inv.run(Inv.scm:71)
at gnu.expr.ModuleBody.run(ModuleBody.java:44)
at gnu.expr.ModuleBody.run(ModuleBody.java:32)
at gnu.expr.ModuleBody.runAsMain(ModuleBody.java:124)
at Inv.main(Inv.scm)
If I do the macro expansion by hand =>
(begin (display (<java.lang.Math>:sqrt 9.0)) (newline))
I get the expected result...!
Why is that?
Thanks!
David
Attachment:
signature.asc
Description: OpenPGP digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |