[fpc-other] Re: [fpc-pascal] Illogical automatic dereferencing
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Oct 13 22:22:03 CEST 2009
Florian Klaempfl wrote on Tue, 13 Oct 2009:
> Jonas Maebe schrieb:
>> Only allowing it for pchar/pwidechar, I guess.
>
> Then another person pops up and asks why it is allowed only for
> pchar/pwidechar being illogical because this is not orthogonal.
Undoubtedly. I guess the best solution is to have that Delphi switch
so everyone can set the behaviour he/she prefers.
> Besides the fact that I think that the pointer to array work around
> would be really hacking e.g. due to range checking.
You can always do (pointertype+x)^, but I guess that's not acceptable
either because it doesn't look very nice. It's more explicit about the
intention though, imo.
Jonas
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the fpc-other
mailing list