Re: Rakudoc - make the naming consistent
On 7/19/22 12:00, Elizabeth Mattijsen wrote: Could it be that you have a "Foo.pm" in an "earlier" directory and a "Foo.pm6" in a later directory in the $*REPO chain? Hi Elizabeth, p6 'say $*REPO' inst#/home/todd/.raku I do not add my modules to the chain as I am ALWAYS tweaking them. I put all my programming files in the same directory. Well except for things in p5lib and p6lib subdirectories. Makes it easier to go back and forth looking how I did previous things up things up. Even have a few C snippets in there. I can imagine this would not work for someone like you that programs a lot. And I Samba network share, so I can develop in Linux and test in Windows, when I do a Windows program in one of my qemu-kvm virtual machines. I do have to play around a bit with the "lib" statement for that. I will run "raku -c filename" in Linux before unleashing in Windows. Are we EVER going to fix the ridiculous compile times? -T My last p6 project was scrambling the unholy dickens out of some data I was placing on a cloud file sharing service for a customer. Now that was a fun write!
Re: Rakudoc - make the naming consistent
> On 19 Jul 2022, at 20:49, ToddAndMargo via perl6-users > wrote: > As an aside, Raku still reads my Perl 5 ".pm" > modules before reading my Raku ".pm6" modules. > Raku default to ".pm" before ".pm6". The > compiler wags its finger at me a lot! > > So I have to segregate my ".pm6" modules > into a special directory , which I > call "p6mod". ("p5lib" for Perl 5.) > > I wonder if there is a way to get Raku > to stop reading ".pm" altogether? Making it stop reading altogether, will probably take some time still to avoid breaking current production environments. However, I have just verified: If you have: - lib |- A.rakumod |- A.pm6 |- A.pm and you do a: $ raku -Ilib -MA -e '' it *will* load the A.rakumod file. And if you remove that, it will load the A.pm6 file. Only if there's only a A.pm file in the "lib" directory, will it load that. You should realize that *if* a repository *can* satisfy a request for a module, then it will. Could it be that you have a "Foo.pm" in an "earlier" directory and a "Foo.pm6" in a later directory in the $*REPO chain? Liz
Re: Rakudoc - make the naming consistent
On 7/19/22 11:13, Richard Hainsworth wrote: pm6 -> rakumod. Hi Richard, +1 on Richards naming scheme. As an aside, Raku still reads my Perl 5 ".pm" modules before reading my Raku ".pm6" modules. Raku default to ".pm" before ".pm6". The compiler wags its finger at me a lot! So I have to segregate my ".pm6" modules into a special directory , which I call "p6mod". ("p5lib" for Perl 5.) I wonder if there is a way to get Raku to stop reading ".pm" altogether? -T