From: scprotz <scprotz@gmail.com>
To: kawa@sourceware.org
Subject: Missing feature or just differences with Guile for define-public
Date: Sat, 28 Jan 2017 12:40:00 -0000 [thread overview]
Message-ID: <CAB3sfF8ygEmP5BsCNf7Q-zExYqKhBWY9UyhWDP1hCzEDSNWhjA@mail.gmail.com> (raw)
I was trying to compile the scm files that come with Aisleriot using
Kawa (these are intended for use with Guile, but I was hoping to try
them out in Java). Many seem to compile ok, but one of the core
files, api.scm has problems.
I came across two issues when trying to convert api.scm to .class.
The first was "invalid use of '_". Apparently kawa doesn't like the _
as part of define's. Easy enough to fix just by changing the '_ to
another identifier.
The second issue though was I get "improper list (circular or dotted)
is not allowed here.
Here is an example define-public from the file:
(define-public (set-features . feature-list)
(set-feature-word! (+ (get-feature-word)
(apply + feature-list))))
My scheme-fu is very very weak, so I'm not sure if this is just an
implementation difference, a bug, or my misunderstanding.
Any help is appreciated (and if you want your own copy of the scm
files from aisleriot, you can grab them here:
https://github.com/GNOME/aisleriot)
-scprotz
next reply other threads:[~2017-01-28 12:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-28 12:40 scprotz [this message]
2017-01-28 23:08 ` Per Bothner
2017-01-29 6:07 ` scprotz
2017-01-29 7:04 ` Per Bothner
2017-01-29 7:35 ` scprotz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAB3sfF8ygEmP5BsCNf7Q-zExYqKhBWY9UyhWDP1hCzEDSNWhjA@mail.gmail.com \
--to=scprotz@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).