Re: [sv-ec] System include proposal


Subject: Re: [sv-ec] System include proposal
From: Stephen Williams (steve@icarus.com)
Date: Mon Mar 10 2003 - 10:10:12 PST


lawrence@cadence.com said:
> When the angle bracket ("<>") notation is used, then only the
> system-wide installation is searched.

If you are trying to match C behavior here, the <> form is the
same as the "" form, excluding only the current working directory.
In particular, include directories specified by -I flags are
searched by #include <foo.h>.

In fact, the C standard only says that the #include <foo.h> search
follows an implementation defined path, and the #include "foo.h"
follows another implementation defined path, which includes the
<> path. It is merely common practice that the -I flags on the
command lines to C compilers affect the <> search path. Gcc has
some private flags for more careful control of include search
paths.

I believe if you are introducing a C-like feature, you should
follow C-like practice as well. Maybe even extract the description
from the C standard?

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
steve at picturel.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



This archive was generated by hypermail 2b28 : Mon Mar 10 2003 - 10:11:33 PST