This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
please take a look at (features)
- From: Per Bothner <per at bothner dot com>
- To: kawa mailing list <kawa at sourceware dot org>
- Date: Tue, 14 Oct 2014 16:51:21 -0700
- Subject: please take a look at (features)
- Authentication-results: sourceware.org; auth=none
The R7RS procedure (features) returns a list of "supported features",
such as may be used by cond-expand.
I just added a bunch of feature names - including 'r7rs (yeah!).
Specifically, I tried to provide sane platform-identifying
names, such as for os, architeture and endianness.
For example on my Fedora Laptop running Java 8 I get:
(kawa kawa-1.14.1 complex exact-complex exact-closed ieee-float ratios
full-unicode java-8 java-7 java-6 little-endian posix unix linux gnu-linux
i386 x86-64 jvm r7rs srfi-0 srfi-4 srfi-6 srfi-8 srfi-9 srfi-11 srfi-16
srfi-17 srfi-23 srfi-25 srfi-26 srfi-28 srfi-30 srfi-39
string-normalize-unicode threads)
Please try calling (features) on your platform, and let me know
of any non-desirable results.
The "specification" is the non-normative Appendix B "Standard Feature Identifiers"
on page 77 (of my pdf of) R7RS.
You might also want to take a look at the relevant part of the source code:
The initialization in kawa/standard/IfFeature.java of the coreFeatures ArrayList
(currentlylines 105-220).
--
--Per Bothner
per@bothner.com http://per.bothner.com/