[fpc-pascal] uses myunit in '../src/myunit.pas' ?
Michael Van Canneyt
michael at freepascal.org
Mon Feb 13 17:00:15 CET 2017
On Mon, 13 Feb 2017, fredvs wrote:
>> The compiler already does this.
>
> Huh, then..., sorry, but there is a bug, it does not work. :-(
>
It does. See the output I sent. Tested with fpc trunk.
>> The 'in' construct was/is a serious contender for "the worst idea ever" of
>> Borland.
>
> If "the compiler already does this" (adding the path of the unit into the
> search-path list), IMO, the use of "in" should be:
>
> uses myunit in '../src'; (in place of '../src/myunit.pas'; )
Well, you need to add the filename, and then it works.
Michael.
More information about the fpc-pascal
mailing list