[fpc-pascal] Why use pointers to arrays?

Andrew Brunner andrew.t.brunner at gmail.com
Mon Oct 12 19:46:23 CEST 2009


On Mon, Oct 12, 2009 at 12:43 PM, Marc Weustink <marc at dommelstein.net> wrote:
> Graeme Geldenhuys wrote:
>>
>> On 11/10/2009, Andrew Brunner <andrew.t.brunner at gmail.com> wrote:
>>>
>>>  FPC forces the ^ operator while accessing structures as pointers.
>>>  Delphi didn't force it and I even suspect that memory leaks can result
>>>  in NOT using the ^ to denote the reference to the pointer rather than
>>>  the pointer itself.
>>  pS[2] <<<<<<<<<<<<<<<

Any idea what the compiler option is under Lazarus (that's what I use
exclusively)?

I get a compiler error when I don't use the ^ operator.



More information about the fpc-pascal mailing list