<p>Am 13.02.2012 14:21 schrieb "Hans-Peter Diettrich" <<a href="mailto:DrDiettrich1@aol.com">DrDiettrich1@aol.com</a>>:<br>
><br>
> Sven Barth schrieb:<br>
><br>
><br>
>> You're wrong. "contains" (along with "requires") is only a keyword in package files not library files.<br>
><br>
><br>
> Thanks for the correction.<br>
><br>
></p>
<p>You're welcome.</p>
<p>>> E.g.<br>
>><br>
>> package Foobar;<br>
>><br>
>> contains<br>
>> Foo in 'foo.pp',<br>
>> Bar;<br>
>><br>
>> requires<br>
>> RTL;<br>
>><br>
>> end.<br>
><br>
><br>
> I couldn't find such files documented anywhere. Are these recognized by FPC, what's their extension?</p>
<p>These are normal Delphi package main files. There they have the extension "dpk". For FPC no such extension exists yet, but the compiler can already parse a file like the above (with whatever extension it might have) and tries to create a runtime package (extension "ppl" analog to Delphi's "bpl"). These packages are not useable currently though. Someone started to implement package support in the compiler some years ago, but it was never finished...</p>
<p>Regards,<br>
Sven<br>
</p>