Re: [Rd] value of a loop broken by break

2004-12-19 Thread Gabor Grothendieck
Peter Dalgaard biostat.ku.dk> writes: : : Gabor Grothendieck myway.com> writes: : : > Should the 'for' loop in the following example not return 3 rather than 2? : > The Language Manual says that it returns the result of the last evaluated : > statement and that would be the i before the 'break

Re: [Rd] value of a loop broken by break

2004-12-19 Thread Peter Dalgaard
Gabor Grothendieck <[EMAIL PROTECTED]> writes: > Should the 'for' loop in the following example not return 3 rather than 2? > The Language Manual says that it returns the result of the last evaluated > statement and that would be the i before the 'break'. 'repeat' and 'while' > have the same beha