[fpc-pascal] Illogical automatic dereferencing

Marco van de Voort marcov at stack.nl
Tue Oct 13 16:50:46 CEST 2009


In our previous episode, Florian Klaempfl said:
> > understanding how pointers work, but a simple case of a typo which
> > couldn't be caught anymore by the compiler due to this extension.
> >
> 
> What is the alternative?

Support D2009 {$pointermath on/off} that governs this, with the default as
OFF in Delphi mode.

For objfpc mode you can put it on OFF too, but then you'll have to fix quite
some source.

I'm really wonder if we should become stricter in this, after years of
allowing it, if Codegear is finally starting to support it.




More information about the fpc-pascal mailing list