[fpc-pascal]adding zero

Marco van de Voort marcov at stack.nl
Fri Jan 3 23:51:23 CET 2003


> In certain cases I find it useful for documenting my code to show "+0"
> when indexing an array...e.g.
> 
> x := a [m*n + 0];
> 
> Is the compiler smart enough to ignore my "+0"? .... or do I incur a
> slight performance penalty for including it?

Only with register optimizations turned on (note that these are IIRC unstable
in the 1.1 development version)




More information about the fpc-pascal mailing list