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 'MongoDB:
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 .= new(
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 "\$