all this he called `` doing his duty by their parents ; '' and he never inflicted a chastisement without following it by the assurance , so consolatory to the smarting urchin , that `` he would remember it and thank him for it the longest day he had to live . ''