[fpc-pascal] (no subject)

Michael Van Canneyt michael at freepascal.org
Thu Feb 23 20:43:33 CET 2012


On Thu, 23 Feb 2012, Everton Vieira wrote:

> Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class?


This exists: class functions.

Given the declaration

  TMYClass = Class
    Class function doGLobal (Arg : ArgType) : Resulttype;
  end;


Then

   TMyClass.doGlobal(a)

Is Valid.

Michael.



More information about the fpc-pascal mailing list