[fpc-devel] Typed addresses by default

Micha Nelissen micha at neli.hopto.org
Thu Oct 5 18:41:19 CEST 2006


Jonas Maebe wrote:
> But this does not help users, third party packages etc. Breaking
> compilation of sloppy code is one thing, but introducing silent bugs is
> a whole other issue.

Hmm. What type is @X in {$T-} ? Is it a special type ? Maybe the
compiler can give a warning when you do arithmetic on this kind of type ?

>> $ (find -regex '.*\.\(pp\|pas\|inc\)' | xargs grep '@[^,]*+') | less
> 
> Shouldn't that be '@[^,]+' ?

No, the idea is to find @expr+, so where you take the address *and* do
arithmetic on the result. That's why there aren't that many cases of it.

Micha



More information about the fpc-devel mailing list