Re: [fpc-pascal]A couple of easy questions on clsses

2003-08-15 Thread Matt Emson
> 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

Re: [fpc-pascal]A couple of easy questions on clsses

2003-08-15 Thread Michael Van Canneyt
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

Re: [fpc-pascal]A couple of easy questions on clsses

2003-08-15 Thread Matt Emson
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 }

Re: [fpc-pascal]A couple of easy questions on clsses

2003-08-14 Thread Aitor Santamaría Merino
[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

Re: [fpc-pascal]A couple of easy questions on clsses

2003-08-14 Thread Michael . VanCanneyt
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