PIN Definition

I think I remember seeing a thread on this forum describing the perils of specifying a pin number to functions in a variable rather than as an explicit digit. If somebody could point me to it I would be grateful. I have used the search function without success.
explicit pin numbers (either #define or const) allow the compiler to optimize for the specific pin.