# New Ticket Created by  Will Coleda 
# Please include the string:  [perl #48737]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=48737 >


>From PDD19:

=item .namespace <identifier> [deprecated]

Open a new scope block. This "namespace" is not the same as the
.namespace [ <identifier> ] syntax, which is used for storing subroutines
in a particular namespace in the global symbol table.
This directive is useful in cases such as (pseudocode):

  local x = 1;
  print(x);       # prints 1
  do              # open a new namespace/scope block
    local x = 2;  # this x hides the previous x
    print(x);     # prints 2
  end             # close the current namespace
  print(x);       # prints 1 again

All types of common language constructs such as if, for, while, repeat and such
that have nested scopes, can use this directive.

{{ NOTE: this variation of C<.namespace> and C<.endnamespace> are deprecated.
They were a hackish attempt at implementing scopes in Parrot, but didn't
actually turn out to be useful.}}

=item .endnamespace <identifier> [deprecated]

Closes the scope block that was opened with .namespace <identifier>.


-- 
Will "Coke" Coleda

Reply via email to