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

ik idokan at gmail.com
Sat Nov 6 16:16:20 CET 2010


On Sat, Nov 6, 2010 at 17:13, Paul Ishenin <webpirat at mail.ru> wrote:

> 06.11.2010 21:39, ik wrote:
>
>> But why class variables and not class fields ?
>>
> What is the difference?
>
> "var" is already a reserved word. reserving a word "field" will cause more
> problems than using an already reserved word.
>


why not something like this:

TAClass = class
private
  FField : class integer;
end;

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

TAClass = class
private
  var Variable : Integer;
end;

That's what I'm trying to figure out.

Ido


>
> Best regards,
> Paul Ishenin.
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101106/ab7a471f/attachment.html>


More information about the fpc-pascal mailing list