[fpc-pascal] uses myunit in '../src/myunit.pas' ?
fredvs
fiens at hotmail.com
Mon Feb 13 14:32:02 CET 2017
Hello Graeme.
OK, thanks, I will take a look.
@Michael:
>I don't see the point at all.
I will show you later TLoadlibrary(), maybe you will see better then.
Huh, and what about: ?
>> But thinking that the compiler itself will automagically determine the
>> path: that's simply not realistic.
> Really ?
> When the compiler reads uses section and find a "in" like here :
> uses myunit in '/thepath/src/myunit.pas';
> He could do something like:
> ...
> if fpcword = 'in' then begin
> IncludeSearchPath((ExtractFilePath('/thepath/src/myunit.pas'); // this
> added
>...
> IncludeUnit('/thepath/src/myunit.pas');
> ...
Fre;D
-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/uses-myunit-in-src-myunit-pas-tp5727626p5727644.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list