Henry Vermaak schrieb:
> 2009/10/11 "Vinzent Höfler" <jellyfish.softw...@gmx.net>:
>> Henry Vermaak <henry.verm...@gmail.com>:
>>
>>> Thanks for the explanation, I was under the impression that arrays in
>>> Pascal were similar to C.  How do you explain the "automatic"
>>> dereferencing with a pointer to an array that Jürgen is talking about?
>> Those are dynamic arrays, IOW pointers disguised as arrays. This is part of 
>> the problem, if not the problem itself.
> 
> No, it happens with static arrays,  if you set pia := @ia, ia[x] and
> pia[x] will give you the same result (in delphi mode, at least).

It's simply more readable and a shortcut.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to