Re: Is passing excess parameters while creating object legal?

2014-05-27 Thread timo
On 05/25/2014 09:50 AM, Kamil Kułaga wrote: > Hi, > > My question is about passing parameters to .new method that do not > correspond to any field in class. This example; > > use v6; > > class PersonalId{ > has Int $.number; > has Str $.full_name; > } > > my Hash $p; #just because i'm scar

Re: Is passing excess parameters while creating object legal?

2014-05-27 Thread Tadeusz Sośnierz
On 05/25/2014 09:50 AM, Kamil Kułaga wrote: Hi, My question is about passing parameters to .new method that do not correspond to any field in class. This example; use v6; class PersonalId{ has Int $.number; has Str $.full_name; } my Hash $p; #just because i'm scared of pair conversi