[fpc-pascal]A couple of easy questions on clsses
Michael Van Canneyt
michael.vancanneyt at wisa.be
Fri Aug 15 12:30:16 CEST 2003
On Fri, 15 Aug 2003, Aitor [ISO-8859-1] Santamaría Merino wrote:
> Michael.VanCanneyt at Wisa.be wrote:
> >>The syntax diagrams of classes show that a method can be preceded by the
> >>keyword "class" (and I failed to find where it is explained what for?),
> >>but does not seem to admit this keyword before a field.
> >This is correct.
> And what is the effect on a method? I suppose that any static method is
> a "class" method, right?
It depends what you mean with 'static'. In classes, the term 'static'
has no defined meaning. You have 'normal' methods (where SELF is
defined) and class methods (where SELF is not defined).
More information about the fpc-pascal