[fpc-pascal] Illogical automatic dereferencing

Henry Vermaak henry.vermaak at gmail.com
Sun Oct 11 14:44:57 CEST 2009


2009/10/11 "Vinzent Höfler" <JeLlyFish.software at gmx.net>:
> Henry Vermaak <henry.vermaak at gmail.com>:
>
>> 2009/10/10 "Vinzent Höfler" <JeLlyFish.software at gmx.net>:
>> > Henry Vermaak <henry.vermaak at gmail.com>:
>> >
>> >> One thing I think you don't understand is that an array _is_ a
>> >> pointer.  Look at this table to visualise:
>> >>
>> >> http://en.wikipedia.org/wiki/C_syntax#Accessing_elements
>> >
>> > One thing I think you don't understand is that arrays and pointers are
>> orthogonal concepts in almost every
>> > other programming language than C.
>>
>> Yes, I am aware of this (at least with the languages I've worked with).
>>
>> > So technically, C is the one who got it wrong.
>>
>> Huh?  Are you saying something is wrong because the majority does it
>> differently?
>
> No. I'm saying it's wrong because this "majority" _proves_ it can be done differently. So the concept seems flawed at least.

Please don't confuse your opinion with "right" and "wrong".  C works
quite well for me, but so does pascal.  I'm not prepared to call
either of them "wrong".  Confusion and consistency were what this
discussion was about.

Henry



More information about the fpc-pascal mailing list