Re: regex objects as hash keys

2020-04-05 Thread Joseph Brenner
> If you want a Hash which allows any kind of object as key, you have to declare it such: > my $obj = Rutabaga.new; > my %vegeout{Any}; # <-- see: > https://docs.raku.org/language/hashmap#Non-string_keys_(object_hash) That's an interesting detail, I didn't get that that behavior wasn't the

Re: regex objects as hash keys

2020-04-05 Thread Tobias Boege
On Sun, 05 Apr 2020, Joseph Brenner wrote: > I find in Raku that (as expected) I can use an object as a hash key: > > class Rutabaga { method color { say "purple (and white)"; } } > > my $obj = Rutabaga.new > my %vegeout; > %vegeout{ $obj } = "this works"; > > And for something

regex objects as hash keys

2020-04-05 Thread Joseph Brenner
I find in Raku that (as expected) I can use an object as a hash key: class Rutabaga { method color { say "purple (and white)"; } } my $obj = Rutabaga.new my %vegeout; %vegeout{ $obj } = "this works"; And for something I was doing I wanted to save up data about matches for

Re: zef and tar.gz

2020-04-05 Thread ToddAndMargo via perl6-users
On 2020-03-23 21:28, ToddAndMargo via perl6-users wrote: Hi All, What is this all about?  Rakudo Star forget another dependency?  psunzip? Windows 7, x64 SP1 K:\Windows\NtUtil>raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d.

Re: zef and tar.gz

2020-04-05 Thread ToddAndMargo via perl6-users
On 2020-03-23 21:28, ToddAndMargo via perl6-users wrote: Hi All, What is this all about?  Rakudo Star forget another dependency?  psunzip? Windows 7, x64 SP1 K:\Windows\NtUtil>raku -v This is Rakudo version 2020.01 built on MoarVM version 2020.01.1 implementing Perl 6.d.

Re: zef and tar.gz

2020-04-05 Thread ToddAndMargo via perl6-users
On 2020-03-23 21:28, ToddAndMargo via perl6-users wrote: zef install OAuth2::Client::Google ===> Searching for: OAuth2::Client::Google Enabled extracting backends [git path psunzip] don't understand C:\Users\todd/.zef/tmp\1585022838.2848..088006717173\OAuth2-Client-Google-0.1.1.tar.gz

Detecting Media Insertion or Removal?

2020-04-05 Thread ToddAndMargo via perl6-users
Hi All, Detecting Media Insertion or Removal: https://docs.microsoft.com/en-us/windows/win32/devio/detecting-media-insertion-or-removal Anyone do this with Raku? Have a link to an example/explanation? The goal is to check the flash drive's label. If it is the drive I am after, to dismount