Seriously, think about this:
with (Sender as tStringGrid), Canvas do
I’m doing some string grid work, and ran across this code out on the web. Wow. It does what I want, but really? It was code on a page with a date of like 1998, so at least we could say it was before many Delphi developers knew better. But still….. that is just awful.
Here’s the truly hideous part – if I comment the line out, the code still compiles! Yikes!