On Wed, Nov 10, 2021 at 4:07 PM Ovid <curtis_ovid_poe@yahoo.com> wrote: > > On Wednesday, 10 November 2021, 21:57:56 CET, Dan Book <grinnz@gmail.com> > wrote: > > > Thanks for explaining, this is new terminology for me - unrelated to the > concept of dynamic scope used in the > documentation (runtime scoping). > > > > Perhaps an addition to the documentation could be made, but this seems > like expected behavior to me. > > Hmm, I didn't know the term "runtime scoping" was used. I just pulled the > latest Perl from github and did a `git grep -i 'runtime scoping' and it > returned no results. > > I made up the term "dynamic scoping" because I didn't know there was a > term for it. I don't see anything in in the pod/ directory that matches > this, either. > > I definitely think there's room for improvement in the docs, but I'm > loathe to submit a patch to further confuse the documentation if there's > already something there that I missed. > "dynamic scoping" is explained here: https://perldoc.perl.org/perlsub#Temporary-Values-via-local() and referred to in various places as "dynamic variables" which is a bit confusing in itself, but perhaps accurate to how local actually works. Runtime scoping is not a term used by the documentation, just my explanation of what it means - the scope of the value/variable is defined by runtime behavior, not only the structure of the program. -DanThread Previous | Thread Next