On 12 Mar 2008, at 22:56, Felipe Monteiro de Carvalho wrote:

On Wed, Mar 12, 2008 at 3:43 PM, Jonas Maebe <[EMAIL PROTECTED] > 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.

You have to use the -St command line option for the "static" keyword to be recognised.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to