[fpc-pascal] Re: variables in class, class variables and fields

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 7 22:08:20 CET 2010


On 06 Nov 2010, at 16:16, ik wrote:

> Further more, what is the difference between a "normal" field and a variable
> inside a class:

Nothing. Everything defined in a "var" section is a field. The reason the "var" keyword can now be used, is because it is now also possible to define types and constants inside classes, so you need a way to switch to defining fields after a "type" or "const" section.


Jonas


More information about the fpc-pascal mailing list