> 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).
Note also that Class Methods kind of act as if they are external to the
class - like tacked on proce
On Fri, 15 Aug 2003, Aitor [ISO-8859-1] Santamaría Merino wrote:
> [EMAIL PROTECTED] 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 befor
Written in Delphi, so use Delphi compatibility mode when testing in fpc
program TestStatic;
uses sysutils;
type
Test = class
public
class function TestValue( x: integer = -1): integer; //unless you pass a
value, returns static value. If pass value, returns new value.
end;
{ Test }
[EMAIL PROTECTED] 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
On Thu, 14 Aug 2003, Aitor [ISO-8859-1] Santamaría Merino wrote:
> Hi,
>
> After reading the reference documentation on classes, I have a couple of
> easy aspects of the documentation that were unclear to me.
>
> (1) Is there the concept of "static field" or "class field" (meaning a
> field that