Ja, figure the in-lining of code and the var scope is "by-design" as you say, but somehow cannot accept that the inability to pre-parse UDFs is by-design. I see the concept of INCLUDEing UDF libraries as a highly desirable feature. After all, who would want to simply join spaghetti into one big long noodle?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.