HaloO,

Jon Lang wrote:
Carl Mäsak wrote:
* A should be treated as a post-declared package.
Whatever this means, it sounds preferable. :)


It means that you can define package A without ever declaring it, by
declaring all of its contents using such statements as 'role A::B ',
'sub A::Foo', and so on.

Does that imply that packages behave like C++ namespaces? That is
a package can be inserted into several times:

   package A
   {
       class Foo {...}
   }
   # later elsewhere
   package A
   {
       class Bar {...}
   }

I would think that this is just different syntax to the proposed
form

   class A::Foo {...}
   class A::Bar {...}


Regards, TSa.
--

"The unavoidable price of reliability is simplicity" -- C.A.R. Hoare
"Simplicity does not precede complexity, but follows it." -- A.J. Perlis
1 + 2 + 3 + 4 + ... = -1/12  -- Srinivasa Ramanujan

Reply via email to