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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to