cannot create an instance of subset type

2020-07-10 Thread Marcel Timmerman
Hi, Using the next code I get an error on the instantiation of $d2; --- use v6; class ABC {   method s ( Int $i ) { say $i + 10; } } subset DEF of ABC; my ABC $a .= new; $a.s(10);   # 20 my DEF $d1 = $a; $d1.s(11);  # 21 my DEF $d2 .= new; $d2.s(12); --- Error is You cannot create an inst

Re: cannot create an instance of subset type

2020-07-10 Thread Brad Gilbert
Subset types are not object types. A subset is basically a bit of checking code and base type associated with a new type name. In something like: my ABC $a .= new; That is exactly the same as: my ABC $a = ABC.new; Well there is no functional `.new` method on any subset types, so `DEF.

Raku-LibCurl:ver<1.0> install error on older MacOS?

2020-07-10 Thread William Michels via perl6-users
Hello, I just updated to Rakudo-2020.06, and while updating many of my modules to their latest versions I saw an error installing/updating (Raku) LibCurl. Below, the first few lines of the error seen with LibCurl::Easy (and EasyHandle): ===> Testing: LibCurl:ver<1.0>:auth:api<1> [LibCurl] # Faile