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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to