in reply to Re^2: Unusual variable declaration
in thread Unusual variable declaration
You are not wrong in the details of what our accomplishes. But it is referred to as a declaration in the documentation for our:
An our declaration declares an alias for a package variable that will be visible across its entire lexical scope, even across package boundaries. The package in which the variable is entered is determined at the point of the declaration, not at the point of use.
Fortunately it does what it does regardless of what we call the behavior. :) It might be a case where there's not a one or few word name for the action our takes. But I do acknowledge your point; our is not a declaration in the say way that my is, or even int foo; in C. It would be nice if we had a word for it that isn't "relax the requirement for fully qualifying the name within a lexical scope under strict."
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Unusual variable declaration
by LanX (Saint) on Nov 04, 2019 at 22:25 UTC | |
by Jenda (Abbot) on Nov 05, 2019 at 11:19 UTC | |
by LanX (Saint) on Nov 05, 2019 at 12:27 UTC | |
by Jenda (Abbot) on Nov 05, 2019 at 16:33 UTC | |
by LanX (Saint) on Nov 05, 2019 at 16:45 UTC |