in reply to Re^6: Which internal DSL are there in Perl? (Domain Specific Languages - Part 1)
in thread Which internal DSL are there in Perl? (Domain Specific Languages - Part 1)
packages can't surround each other, your packages Test and Page are on the same level.
I know that packages don't nest, and that namespaces are not organized in a hierarchy. What I am after is information about when package switching occurs, and after switching, whence. This information must be known to the compiler to restore the previous package's scope after the current package's scope ends:
package Foo { ... package Bar { ... # I want to know 'whence' here }; ... # package Foo resumed. ... # the compiler knows about the package to be resumed. ... # how can I use that information inside 'Bar'? };
|
|---|