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]

Re: Detecting kawa/scheme implementation for conditional require


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]