[fpc-pascal] Layout of class method

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Mar 12 22:56:39 CET 2008


On Wed, Mar 12, 2008 at 3:43 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>  In theory, declaring a class method as static should do that (as
>  mentioned before either here or on fpc-devel), but it doesn't at this
>  time. Feel free to file a bug.

What is the syntax of a class method on FPC?

I did a search and the syntax on delphi seams to be this:

class procedure SetClassProperty(Value: Integer); static;

But my FPC 2.2.0 doesn't recognize the "static" at the end of the
declaration. I read the other thread, but there is nothing there that
makes the syntax clear.

Maybe isn't of having wrongly implemented static methods, fpc simply
doesn't have them yet?

thanks,
-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list