Menu

#73 Error with Class Operators

0.13.0
closed
5
2018-02-08
2009-04-28
No

When parsing a record with class operators like this, an error is generated and the whole file is not included:
class operator Add(p1,p2:TMyPoint):TMyPoint;
The error message is as follows:
Error EPasDoc: F:\Delphi\jdvd\trunc\common\uPersons.pas(14): One of symbols "," or ":" expected while parsing unit uPersons.pas, continuing...

Discussion

  • Michalis Kamburelis

    Closing, this was fixed long time ago. PasDoc can parse this:

    unit A;
    interface
    type
      TMyRecord = record
        class operator Add(p1,p2:TMyPoint):TMyPoint;
      end;
    implementation
    // ...
    end.
    

    Sorry for not notifying about it earlier!

     

    Last edit: Michalis Kamburelis 2018-02-08
  • Michalis Kamburelis

    • status: open --> closed
    • assigned_to: Michalis Kamburelis
    • Version: --> 0.13.0
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.