Re: Bug creating objects using some form of named arguments

2015-09-29 Thread mt1957
The trouble I get at the moment is an error generared by the following piece of code return MongoDB::Cursor.new( collection => self, OP_REPLY=> $OP_REPLY, criteria=> %@criteria ); It generates the error; Default constructor for

Bug creating objects using some form of named arguments

2015-09-28 Thread mt1957
Hi Below a set of tests where all object creates are done well except for the last one using a sub or method returning the created object. class X { has Str $.a; } my X $x .= new(a => 'abc'); say "\$x = {$x.perl}"; $x .= new(:a('abc')); say "\$x = {$x.perl}"; $x .= new :a('abc'); say

Re: Bug creating objects using some form of named arguments

2015-09-28 Thread mt1957
On 09/28/2015 07:16 PM, mt1957 wrote: False alarm, had a typing error in the code so, mea culpa poli :-[ . Hi Below a set of tests where all object creates are done well except for the last one using a sub or method returning the created object. class X { has Str $.a; } my X $x .=