in reply to Namespaces contiguous in the entirety

We see enough value in the constraint that, by default, Perl 6 will warn on namespace reentry. However, recognizing that reopening namespaces is useful, we'll make it really easy to suppress that warning by adding some trait to the declaration of the package or module or class to express the intent of reopening or redefining. "is also" and "is instead" might work.
  • Comment on Re: Namespaces contiguous in the entirety

Replies are listed 'Best First'.
Re^2: Namespaces contiguous in the entirety
by tye (Sage) on Sep 29, 2005 at 03:01 UTC

    {use strict "package"}++. Symbolic references to packages are problematic. Just avoid them?

    - tye        

Re^2: Namespaces contiguous in the entirety
by rir (Vicar) on Sep 28, 2005 at 21:12 UTC
    Just to be sure we mean the same thing. This syntax describes what I am trying to achieve:
    package this_package can not be reentered;
    Your is also or is instead seems to indicate creating aliases for a namespace. I like that idea a lot--in a few languages I wished I could simply capture intention during prototyping by:
    class ID_NUMBER is INT;
    and settle details later.

    Be well,
    rir