Menu

Problem with var in implementation

Help
2006-04-03
2013-04-24
  • Norman Czarczinski

    Hello,
    when I use a var-section for global unit variables, pas2dox comments it and also the complete following code.

    Example:
    unit singletondemo;

    interface

    function Singleton: TSingleton;

    implementation

    var
       Singletonvar: TSingleton=nil;
     
    {* Create a singleton }
    function Singleton: TSingleton;
    begin
      if not Assigned(Singletonvar) then
        Singletonvar:=TSingleton.Create;
      Result:=Singletonvar;
    end;

    It generates
    ...
    /*
    var
    ...
    #endif /* DOXYGEN_SKIP */
    };

    So there is no way to put function- and method-dokumentation into the implementation.

    Is there any workaround?

    Bye
      Norman

     
    • Darren Bowles

      Darren Bowles - 2006-04-03

      please check your sourceforge email.   I have sent on a new version of pas2dox, along with pas2dox.l source code.

      I am unable to checkin new version to cvs, as I am blocked from doing so at this location.  I will do this later.

      Ta,
      Darren.

       

Log in to post a comment.