On Mon, Dec 05, 2005 at 04:41:21PM +0100, Leopold Toetsch wrote: > On Dec 5, 2005, at 5:55, Matt Diephouse wrote: > >>- perl5: sometimes (via sigil, but $ref_tosub) > >>- perl6: maybe (sigil is part of the symbol name, but $ref) > > > >Functions, variables, and namespaces _are_ separate here. Don't let the > >fact you can make a variable reference a sub throw you off. They are > >separate entries in the symbol table and separate entities. > > How so? > > our $a; > sub foo { sub {1} } > $a = foo();
$a is a variable here, not a subroutine. Full stop. The fact that $a is holding a value that, when properly dereferenced, points to a subroutine, is of no import. (No pun intended. :-)) The fact that Perl 5 makes it somewhat easy, and Perl 6 makes it dead easy, to do that dereferencing operation, is also of no import. > This all doesn't really preclude parrot support for split namespaces, > but I really see not much use for it, as most languages (that need) it, > know how do deal with it (e.g. Perl6: store the sigil with the name). The point is to support exporting from a unified-namespace language to a split-namespace language, and vice versa. Are there any issues with the current spec that prevent its implementation? -- Chip Salzenberg <[EMAIL PROTECTED]>