John Levon <[EMAIL PROTECTED]> writes: | On Thu, May 05, 2005 at 05:23:56PM +0100, Angus Leeming wrote: > >> Urggggs. Doesn't cmd[-1] mean cmd[cmd.length()-2]. Some nasty c-ism? > | No, it means what it says, one before the start of the array in this | case.
Right ... except for the case where -1 is of char type.... then it is (afaik) promoted to int first... and you can get -1 or 255 depending on the signedness of char. -- Lgb