On 10.10.2011 20:28, Michael Lutz wrote:
Am 10.10.2011 17:41 schrieb Sven Barth:
Move the "external ..." part to the interface and remove the one in the
implementation section. This works at least for me and is the usual way
of importing functions in their own unit.
Thanks, that works. Summary of some more tests:
- 'external ...' in the interface section works
- 'external ...' in the implementation if the procedure is not declared in
the interface section works
- 'external ...' in the implementation and a declaration in the interface
section does NOT work
That probably should at least get a documentation line somewhere.
In my opinion this should be a bug, because at least Delphi allows to
use the third variation. So could you report one, so it's not forgotten?
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal