If I would define a function within a function (or Class), Then why couldn't I refer to variables as $Class.Varname even if not currently in the parent function/class definition?

Further more I may have a Date function/class library with various discreet date functions. Shouldn't I be able to Date.DayOfWeek(@date) for example?
_________________________
Home page: http://www.kixhelp.com/hb/