Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, May 09, 2005 at 10:58:51AM +0200, Lars Gullik Bjønnes wrote: >> 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. > | A '-1' literal is always of type 'int'.
nit picker... char c = -1; and substitue if you didn't get it. -- Lgb