This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Detecting kawa/scheme implementation for conditional require
- From: Per Bothner <per at bothner dot com>
- To: "David O'Callaghan" <david dot ocallaghan at cs dot tcd dot ie>
- Cc: kawa at sources dot redhat dot com
- Date: Tue, 10 Jan 2006 09:28:36 -0800
- Subject: Re: Detecting kawa/scheme implementation for conditional require
- References: <43C38636.600@cs.tcd.ie>
David O'Callaghan wrote:
I want to be able to do something like:
(if (eq? scheme-version 'kawa-1.8)
(require 'srfi-69))
require is a syntatic form, and is expanded at compile-time.
So it really doesn't make much sense to have it be conditionally
executed depending on a run-time test.
If you're willing to include a cond-expand implementation to
the mzscheme case, I agree that seems the cleanest solution.
--
--Per Bothner
per@bothner.com http://per.bothner.com/