Bug in Replace All function in the compiler

28 Jul 2011


I found a bug in the compiler's Replace All functionality. I had a code that contained a variable named command. The i wanted to rename it to menu_command. Then I put command in the find screen, menu_command to the replace screen and hit Replace All. The compiler transformed all command variables to menu_menu_menu_menu_command.

So it apparently didn't realise it had just created one additional command and ended up in perversive recursion. Fortunately it understood to stop on the fourth round.