[fpc-pascal] Illogical automatic dereferencing

Marco van de Voort marcov at stack.nl
Sat Oct 10 20:18:53 CEST 2009


In our previous episode, Henry Vermaak said:
> > and access the record members respectively. It's a static address, known at compile time. No dereferencing.
> >
> >> No, it's not weakened by C-style all of a sudden, it's _always_ been
> >> like this.
> >
> > No. Your confusing arrays and pointers. Or maybe, you're confusing Pascal and C.
> 
> 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?

This is an extension of Borland dialects, of a much later period, where OS
apis and examples are specified at C level.

Other such examples are enums with gaps, the ability to have fieldnames with
the same name as types etc.




More information about the fpc-pascal mailing list