Re: modules and subsets

2019-12-12 Thread Todd Chester via perl6-users
On 2019-12-12 00:22, Fernando Santagata wrote: On Thu, Dec 12, 2019 at 3:46 AM Todd Chester > wrote: On 2019-12-11 10:22, Fernando Santagata wrote: > File test.pm6 > > unit module test; > subset PosInt of Int is export where * > 0; >

Re: modules and subsets

2019-12-12 Thread Fernando Santagata
On Thu, Dec 12, 2019 at 3:46 AM Todd Chester wrote: > On 2019-12-11 10:22, Fernando Santagata wrote: > > File test.pm6 > > > > unit module test; > > subset PosInt of Int is export where * > 0; > > > > > > File test.p6 > > > > use lib '.'; > > use test; > > sub mytest(PosInt $a) { say $a } > >