Re: How to call a super class method?

2015-10-28 Thread Lloyd Fournier
I just re-read your question and saw your emphasis on "non-static" context. I'm not 100% sure what you are looking for, but take a look at *BUILD:* http://docs.perl6.org/language/objects#Submethods LL On Wed, Oct 28, 2015 at 2:31 PM, TS xx wrote: > Hello fellow perl

Re: How to call a super class method?

2015-10-28 Thread Lloyd Fournier
Hi Emiliano, You could do this: class Person { has $.name; method new($name) { # do some things self.bless(:$name); } } class Employee is Person { my $counter = 1; method new () { # Employees don't have individual identities so we give them a name :(

Re: How to call a super class method?

2015-10-28 Thread Moritz Lenz
On 10/28/2015 08:03 AM, Patrick R. Michaud wrote: On Wed, Oct 28, 2015 at 03:31:09AM +, TS xx wrote: Can I call the Person's constructor (in non static context), pass the required parameter and do more things before returning? There are two answers to this question, both of which likely

Re: Missing documentation

2015-10-28 Thread Wah Peng
yes here also gets 404. On 2015/10/29 3:31, Parrot Raiser wrote: This Perl 5 to 6 Translation guide http://doc.perl6.org/language/5to6 is mentioned in several places, but returns a 404. Is it obsolete, or just misplaced?

Re: Missing documentation

2015-10-28 Thread Kaare Rasmussen
On 10/28/2015 08:31 PM, Parrot Raiser wrote: This Perl 5 to 6 Translation guide http://doc.perl6.org/language/5to6 is mentioned in several places, but returns a 404. Is it obsolete, or just misplaced? This one you're looking for? http://doc.perl6.org/language/5to6-nutshell.html