[perl #129856] namespace clashes

2017-09-14 Thread Brian S. Julin via RT
On Wed, 12 Oct 2016 07:07:19 -0700, mt1...@gmail.com wrote: > Hi, > > I wanted to define a class in the 'Pod' package like so (in file > lib/Pod/Render.pm6) > > > use Pod::To::HTML; > unit package Pod; > class Render { ># ... > } > > > Then use it > > use Pod::Render; > my Pod::Render $p

[perl #129856] namespace clashes

2016-10-12 Thread Zoffix Znet via RT
I've narrowed down the issue to this condition: if the package's name is part something that we already have in core, then this bug (is it a bug?) appears: No names to clash with core types; everything works: $ cat Foo.pm6 unit package Bar; class Ber {} $ perl6 -I. -MFoo -e 'say

[perl #129856] namespace clashes

2016-10-12 Thread via RT
# New Ticket Created by mt1957 # Please include the string: [perl #129856] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129856 > Hi, I wanted to define a class in the 'Pod' package like so (in file lib/Pod/Render.pm6) us