File: ok_static_member.pas

package info (click to toggle)
pasdoc 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,992 kB
  • ctags: 2,308
  • sloc: pascal: 26,085; makefile: 434; sh: 343; xml: 21
file content (23 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
unit StaticMember;

interface

type
  TMyClass = class
    // All methods are static unless they are virtual or dynamic.
    // but @name is declared static.  Even if 'static' did not
    // appear after the declaration, @name would still be static.
    // @name is also a Class procedure but that is a separate story.
    Class Procedure StaticProcedure; static;
  end;

implementation

{ TMyClass }

class procedure TMyClass.StaticProcedure;
begin

end;

end.