My dad disciplined me this way. Most of the time it was at home, but one time I acted up in a hardware store and he had me stand in the nearest corner. That was the only time I had to be disciplined like that in public.
If only more parents did the same.....