On Wed, 7 Oct 2020 10:53:16 -0600 Ryan Joseph via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
> I'm trying "uses in" which I never knew existed before. > > The idea is that I provide a path to TOML.pas using -Fu then use the > "in" syntax to reference the units which are in a subdirectory. This > makes it safe from the project importing the unit so any private > units in the subdirectory don't override units from the importing > project. > > unit TOML; > interface > uses > TOMLParser in '/sources', > TOMLTypes in '/sources'; uses TOMLParser in 'sources/TOMLParser.pas', TOMLTypes in 'sources/TOMLTypes.pas'; Not Delphi compatible. > This doesn't seem to be working however. I was hoping that I could > then omit an extra -Fu flag to the subdirectory "/sources" thus > making it easier to include the main unit but maybe that's not how > the "uses in" syntax works. Only in FPC: {$unitpath sources} interface uses TOMLParser, TOMLTypes; Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal