[plt-scheme] (require... ) expanded from a macro

From: Michael Sperber (sperber at informatik.uni-tuebingen.de)
Date: Sun Oct 29 04:10:10 EST 2006

"Dan Muresan" <danmbox at gmail.com> writes:

>> (The C people figured this out 10 years ago.)
>
> Really? In C I can keep multiple implementation variants in one file
> (or multiple conditionally-included "modules"). I can pass the
> compiler some flag from the Makefile to determine if I'm in gcc or
> Visual C, and I can use #if and friends in the source. Or I could even
> depend on builtin compiler macros to tell which implementation I'm
> under.

Yes, but the C people figured out 10 years ago that this is a bad
idea, which is why most projects don't conditionalize on a particular
platform, but rather individual properties.  autoconf isn't exactly a
well-implemented system, but the basic approach is sound.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla


Posted on the users mailing list.