[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH][5] Include files relative to the current s
From: |
John Cowan |
Subject: |
Re: [Chicken-hackers] [PATCH][5] Include files relative to the current source file |
Date: |
Sat, 16 Jul 2016 19:04:59 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Peter Bex scripsit:
> IMHO, include should do one or the other: relatively to file or the
> current dir, but not both.
C's #include "foo", at least as implemented by gcc, uses the "directory
containing the current file" rule, and I think it makes the most sense.
However, for backward compatibility it would make sense to me to look in
$PWD next before looking in the standard include path.
> An include-relative is defined by the s48-modules egg. I think it
> makes more sense to have that, especially considering we also have
> load-relative.
Good point.
--
John Cowan http://www.ccil.org/~cowan address@hidden
Tautology is something that is tautological. --Francois-Rene Rideau