From: Matthew Moss Date: 2008-11-25T07:55:39+09:00 Subject: Re: [QUIZ] Befunge (#184) >> when :north >> @pc[0] = (@pc[0] - 1 + @hgt) % @hgt > I guess the + @hgt is a nop but ok it makes the reader more > comfortable with the code :), OTOH it took me > some time to work it's purpose out. I tend to do (-1 + h) % h when I don't recall a language's particular rules for dealing with negative mod. In other words, if I don't know that (0-1)%h is safe, I do know that (0-1+h)%h is safe and gets me what I want.