Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread Mattias Gaertner
On Thu, 22 Feb 2018 12:48:21 +0100 (CET) Michael Van Canneyt wrote: >[...] > home:~/source/testsub> fpc a.pp > unit1.pas(1,9) Error: Illegal unit name: foo (expecting FOO) > unit1.pas(7,1) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > > Where > > a.pp: >

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread Mattias Gaertner
On Thu, 22 Feb 2018 17:04:25 +0100 Mattias Gaertner wrote: > On Thu, 22 Feb 2018 10:41:29 -0500 > wkitt...@windstream.net wrote: > > > On 02/22/2018 09:49 AM, Michael Van Canneyt wrote: > > > On Thu, 22 Feb 2018, Mattias Gaertner wrote: > > >> On Thu, 22 Feb 2018 12:48:21 +0100 (CET) > > >

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread Mattias Gaertner
On Thu, 22 Feb 2018 10:41:29 -0500 wkitt...@windstream.net wrote: > On 02/22/2018 09:49 AM, Michael Van Canneyt wrote: > > On Thu, 22 Feb 2018, Mattias Gaertner wrote: > >> On Thu, 22 Feb 2018 12:48:21 +0100 (CET) > >> Michael Van Canneyt wrote: > >>> First of all, normally it won't work eith

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread wkitty42
On 02/22/2018 09:49 AM, Michael Van Canneyt wrote: On Thu, 22 Feb 2018, Mattias Gaertner wrote: On Thu, 22 Feb 2018 12:48:21 +0100 (CET) Michael Van Canneyt wrote: First of all, normally it won't work either way, because you must use "unit foo;" and "unit bar;" in the files. >> No, I can use

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread Michael Van Canneyt
On Thu, 22 Feb 2018, Mattias Gaertner wrote: On Thu, 22 Feb 2018 12:48:21 +0100 (CET) Michael Van Canneyt wrote: [...] First of all, normally it won't work either way, because you must use "unit foo;" and "unit bar;" in the files. No, I can use normal units. This works here: Strange. I

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread Mattias Gaertner
On Thu, 22 Feb 2018 12:48:21 +0100 (CET) Michael Van Canneyt wrote: >[...] > First of all, normally it won't work either way, because you must use "unit > foo;" and "unit bar;" in the files. No, I can use normal units. This works here: ---test1.pas--- uses foo in 'unit1.pas', unit1, bar in 's

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread Michael Van Canneyt
On Thu, 22 Feb 2018, Mattias Gaertner wrote: Hi, FPC allows to use two different units with the same name: uses foo in 'unit1.pas', bar in 'sub/unit1.pas'; Which might fail with linking errors. Is this a feature or a bug? A feature. First of all, normally it won't work either way, becau

[fpc-pascal] uses in 'filename'

2018-02-22 Thread Mattias Gaertner
Hi, FPC allows to use two different units with the same name: uses foo in 'unit1.pas', bar in 'sub/unit1.pas'; Which might fail with linking errors. Is this a feature or a bug? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http: