Re: Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread JJ Merelo
I'll try to check that. It was recently changed, maybe it was not done completely... El jue., 11 oct. 2018 a las 17:44, Richard Hogaboom (< richard.hogab...@gmail.com>) escribió: > OK .. I mistakenly assumed that it should not compile from the doc > '(This does not work with the variable)'. > >

Re: Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread Siavash
Maybe someone with better knowledge can answer. But I guess ;; is https://docs.perl6.org/type/Signature#Long_names The #`() part is a comment(inline). And the number is what WHICH returns. https://docs.perl6.org/routine/WHICH On October 11, 2018 7:13:41 PM GMT+03:30, Richard Hogaboom wrote:

Run tests only if a module is available

2018-10-11 Thread Fernando Santagata
Hello, I wish to run some tests on one module of mine only if there's a certain third-party module available during installation. Before I concocted something horrid using try/catch in the INIT phaser, is there any gentle way to do this? Thanks! -- Fernando Santagata

Re: Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread Richard Hogaboom
OK .. I mistakenly assumed that it should not compile from the doc '(This does not work with the variable)'. my $tmp = Foo::Bar::<>; say $tmp();  # zipi - works if ';; $_? is raw' is the signature, what does the ';;' mean and what does '#`(Block|62717656) ...' mean? On 10/11/18 9:45 AM,

Re: Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread Brandon Allbery
More to the point of this, currently there is no way to reconstruct the definition of a block, so you get its signature and an inline comment in place of the body. There is an easier way to see the same behavior: ::Bar::zape This is getting the block/sub as a value instead of invoking it.

Re: Atom file icons of executables

2018-10-11 Thread Brandon Allbery
This will be part of the desktop manager (probably Gnome), not Atom. Check the context menu for the icon in the file manager. I don't run Gnome so don't know where they hide how you set it currently. On Thu, Oct 11, 2018 at 5:20 AM Richard Hainsworth wrote: > I use atom to edit perl6 scripts

Re: Run tests only if a module is available

2018-10-11 Thread Timo Paulssen
I'd go with run-time loading and if the module doesn't exist, just "flunk" or "skip" or what Test.pm6 offers. Here's a link that explains checking if a module is installed and loading it if it is:     https://rakudo.org/post/lexical-require-upgrade-info Hope that helps!   - Timo On 11/10/2018

Re: Run tests only if a module is available

2018-10-11 Thread Vadim Belman
Hi, So far, the only potential solution for you issue would be Test::When. But the needed functionality was declared as 'soon to be implemented' and is not there yet. Perhaps, if you convince Zoffix Znet to complete it... > 11 жовт. 2018 р. о 13:08 Fernando Santagata > написав(ла): > >

Re: Atom file icons of executables

2018-10-11 Thread Richard Hainsworth
I don't think so. The icon is inside the panel of files available for editing. Since atom is cross-OS it cannot rely on one desktop manager of one OS. On Fri, 12 Oct 2018, 02:10 Brandon Allbery, wrote: > This will be part of the desktop manager (probably Gnome), not Atom. Check > the context

Re: Atom file icons of executables

2018-10-11 Thread Brandon Allbery
But there are quasi-standard APIs for accessing that information. In particular, Javascript has access to such APIs. And trying to do this without integrating with OS services has its own complexities, like how you handle 'execute bit' on Windows which doesn't have one. Which is why there are JS

Atom file icons of executables

2018-10-11 Thread Richard Hainsworth
I use atom to edit perl6 scripts because of the nice perl6 syntax highlighting. Also I came across Atom from this group. Although files with .p6 or .pm6 have a nice camilea icon associated with them, ... ... if I give a p6 file an exec bit, the icon changes to something like an onion. I'm

Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread Richard Hogaboom
# # example from https://docs.perl6.org/language/packages # # from documentation under Package-qualified names: # # "Sometimes it's clearer to keep the sigil with the variable name, so an alternate way to write this is: # Foo::Bar::<$quux> # (This does not work with the variable) The name is

Re: Strange output on 'say Foo::Bar::<>;'

2018-10-11 Thread Siavash
It means it's returning a Block. dd Foo::Bar::<> # Block = -> ;; $_? is raw { #`(Block|94777643161752) ... } say Foo::Bar::<>() # zipi