[Lazarus] overloaded proc not found

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 5 11:13:55 CEST 2012


Marc Santhoff <M.Santhoff at web.de> hat am 5. September 2012 um 09:56 geschrieben:
> Hi,
>
> is there any problem with overloading in fpc2.6.0? Or another change
> making lazarus behave like this:

> TnkDOMTree = class( TXMLDocument )

> procedure ReadXMLFile(out ADoc: TXMLDocument; const AFilename: String);
> overload;
> procedure ReadXMLFile(out ADoc: TXMLDocument; var f: Text); overload;
> procedure ReadXMLFile(out ADoc: TXMLDocument; f: TStream); overload;
> procedure ReadXMLFile(out ADoc: TXMLDocument; f: TStream; const ABaseURI:
> String); overload;

out parameters must match exactly.
Older fpc had a bug and didn't spot it.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120905/b06e38d4/attachment-0003.html>


More information about the Lazarus mailing list