chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH][5] Include files relative to the current sourc


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH][5] Include files relative to the current source file
Date: Sat, 28 May 2016 23:01:56 +1200

Hi folks,

Here's another patch for chicken-5. It makes "(include ...)" search for
files relative to the including file. Relative includes are given the
lowest search priority, i.e. they are only used when the included file
isn't found in the CWD or any of the directories specified with the
"-include-path" option.

I considered two alternative approaches when implementing this feature.
One was to leave the current behaviour of `include` alone and instead
add a new `include-relative` form (similarly to how we have both `load`
and `load-relative`), and the other was to make the relative inclusion
behaviour toggleable with a parameter. Both seemed like unnecessary
knobs to me.

Cheers,

Evan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]