I think that was the previous posters point - any teaching on a moral issue will ultimately have overlap with real world issues.
A homily about gambling would be right in line with religious teachings - the timing is really what is at the apex of your post.