Just for the sake of personal curiosity, did your compiler issue any sort of warning when you had return; in your code?