[fpc-devel] Purpose of "uses ... in"?
Stefan Kisdaroczi
kisda at hispeed.ch
Wed Jul 14 23:35:27 CEST 2010
Marcos Douglas schrieb:
> On Wed, Jul 14, 2010 at 2:55 PM, Stefan Kisdaroczi <kisda at hispeed.ch> wrote:
>> create a rar.pas containing only the line:
>> {$include rar/zip.pas}
>>
>> compile with:
>> fpc -Un rar.pas
>>
>> -Un Do not check where the unit name matches the file name
>
> Interesting...
> Anyone ever used this?
I'm still using it. Or make a symlink:
ln -s rar/zip.pas rar.pas
In combination with {$L xzy.o} and 'external name ...' you can do
wonderful things. Don't do this at home! (maybe at work :-)
Stefan
More information about the fpc-devel
mailing list