[fpc-pascal] Layout of class method
jonas.maebe at elis.ugent.be
Wed Mar 12 23:16:21 CET 2008
On 12 Mar 2008, at 22:56, Felipe Monteiro de Carvalho wrote:
> 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.
You have to use the -St command line option for the "static" keyword
to be recognised.
More information about the fpc-pascal