Peter N Lewis wrote:
Why can't unit-path be a compiler directive?
Because that's a system installation setting, not part of the Pascal source (same as optimization options etc.). (The result would be programs that only compile on a specific directory structure.)
And {$uses} for that matter?
Because it's equivalent to `uses'.
I include a prefix file, and I'd rather store the paths in the prefix file so the command line isn't several lines long and
The usual place to put such options are Makefiles, scripts, aliases/short cuts, IDE settings etc., not the source code.
I can more easily see what file it is actually compiling.
You might want to use progress messages and a tool to display them.
I can't use a separate "uses xxx;" clause since the prefix file comes before the unit yyy; line in the file.
GPC allows this.
Frank