Re: [fpc-pascal] uses in '' relative paths

2020-10-08 Thread Ryan Joseph via fpc-pascal
> On Oct 7, 2020, at 11:15 AM, Ryan Joseph wrote: > > Some interesting stuff here, thanks. Almost there but for some reason > Scanner.pas is not found even though it's in the same directory as > TOMLParser.pas. The compiler did find TOMLParser despite /sources not being > explicitly included

Re: [fpc-pascal] uses in '' relative paths

2020-10-08 Thread Mattias Gaertner via fpc-pascal
On Thu, 8 Oct 2020 09:37:06 -0300 "Marcos Douglas B. Santos via fpc-pascal" wrote: >[...] > > > unit TOML; > > > interface > > > uses > > > TOMLParser in '/sources', > > > TOMLTypes in '/sources'; > > > > uses > > TOMLParser in 'sources/TOMLParser.pas', > > TOMLTypes in 'sources/TOMLTyp

Re: [fpc-pascal] uses in '' relative paths

2020-10-08 Thread Marcos Douglas B. Santos via fpc-pascal
On Wed, Oct 7, 2020 at 2:02 PM Mattias Gaertner via fpc-pascal wrote: > > On Wed, 7 Oct 2020 10:53:16 -0600 > Ryan Joseph via fpc-pascal 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" synta

Re: [fpc-pascal] uses in '' relative paths

2020-10-07 Thread Ryan Joseph via fpc-pascal
> On Oct 7, 2020, at 11:02 AM, Mattias Gaertner via fpc-pascal > wrote: > > Only in FPC: > > {$unitpath sources} > interface > uses > TOMLParser, TOMLTypes; Some interesting stuff here, thanks. Almost there but for some reason Scanner.pas is not found even though it's in the same directory

Re: [fpc-pascal] uses in '' relative paths

2020-10-07 Thread Mattias Gaertner via fpc-pascal
On Wed, 7 Oct 2020 10:53:16 -0600 Ryan Joseph via fpc-pascal 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 p