> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > data.length is evaluated each time. > > here's the example to demonstrate it: [Example elided that reassigns data inside the loop]
That example would indeed be evaluated each time. However, *if* the compiler's sufficiently smart, it could detect that data and hence data.length were not changed inside the OP's loop and optimise away the test for .length each time. That smarts would be compiler-specific, if it can be done at all. We're theorising here. The real way is to test this is to write the test harness and try it. - Peter --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]