From: Carl Date: 2007-11-21T14:50:03+09:00 Subject: Re: for loop Todd Burch writes: > Martin Durai wrote: >> Thank you carl, iam very new to this language >> >> sorry carl could you help with this code fully >> >> for( int i = namespaceEnd -1; i >= 0; i--) { >> if( prefix.equals( namespacePrefix[ i ] ) ) { >> return namespaceUri[ i ]; >> } >> >> >> thank you in advance > > (namespace_end - 1).downto(0) { |x| > return namespaceUri[x] if prefix==namespacePrefix[x] } > > Todd I'm getting a 'LocalJumpError: unexpected return' error when I try to return from within a downto block, is this supported in your version? Carl.