Error calling bless in non-default constructor

2007-05-15 Thread Matthew Keene
I'm trying to use a non-default constructor for a class under Pugs 6.2.13, like so class MattTest { sub new (Class $class : Str $string) { say Passed $string to the constructor for $class ; return $class.bless ; } } my $test = MattTest.new('abc') ; This is failing with the

Re: Error calling bless in non-default constructor

2007-05-15 Thread David Brunton
('abc')); # Check to see the class is the right kind of thing: say $test.WHAT # Output the class as a readable string say $test.perl; - Original Message From: Matthew Keene [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 5:02:56 AM Subject: Error calling bless

Re: Error calling bless in non-default constructor

2007-05-15 Thread David Brunton
:56 AM Subject: Error calling bless in non-default constructor I'm trying to use a non-default constructor for a class under Pugs 6.2.13, like so class MattTest { sub new (Class $class : Str $string) { say Passed $string to the constructor for $class ; return $class.bless

Re: Error calling bless in non-default constructor

2007-05-15 Thread Matthew Keene
] Sent: Tuesday, May 15, 2007 5:02:56 AM Subject: Error calling bless in non-default constructor I'm trying to use a non-default constructor for a class under Pugs 6.2.13, like so class MattTest { sub new (Class $class : Str $string) { say Passed $string to the constructor for $class