Skip Menu |
Report information
Id: 59928
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Calling methods in many-jointed classes doesn't work
Date: Thu, 16 Oct 2008 15:22:33 +0200
To: rakudobug [...] perl.org
From: "Carl Mäsak" <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 342b
Rakudo r31994 can call methods on classes without :: in them, but not on classes having them. $ perl6 -e 'class A { method foo { say "OH HAI" } }; A.new.foo' OH HAI $ perl6 -e 'class A::B { method foo { say "OH HAI" } }; A::B.new.foo' Method 'foo' not found for invocant of class 'A;B' [...] Possibly related to the (now resolved) #58368.
Download (untitled) / with headers
text/plain 478b
On Thu Oct 16 06:22:58 2008, masak wrote: Show quoted text
> Rakudo r31994 can call methods on classes without :: in them, but not > on classes having them. > > $ perl6 -e 'class A { method foo { say "OH HAI" } }; A.new.foo' > OH HAI > > $ perl6 -e 'class A::B { method foo { say "OH HAI" } }; A::B.new.foo' > Method 'foo' not found for invocant of class 'A;B' > [...]
We clearly need more OO tests. Care to add that one (as TODO) to one of the S12 tests that is included in `make spectest`?
Subject: Re: [perl #59928] Calling methods in many-jointed classes doesn't work
Date: Thu, 16 Oct 2008 19:21:41 +0200
To: perl6-bugs-followup [...] perl.org
From: "Carl Mäsak" <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 643b
Moritz (>), Carl (>>): Show quoted text
>> Rakudo r31994 can call methods on classes without :: in them, but not >> on classes having them. >> >> $ perl6 -e 'class A { method foo { say "OH HAI" } }; A.new.foo' >> OH HAI >> >> $ perl6 -e 'class A::B { method foo { say "OH HAI" } }; A::B.new.foo' >> Method 'foo' not found for invocant of class 'A;B' >> [...]
> > We clearly need more OO tests. Care to add that one (as TODO) to one of > the S12 tests that is included in `make spectest`?
I added the new test file t/spec/S12-class/namespaced.t -- feel free to merge it (and its single test) into another test file. I'm not sure I got the TODO fudging right.
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 826b
On Thu Oct 16 10:22:06 2008, masak wrote: Show quoted text
> Moritz (>), Carl (>>):
> >> Rakudo r31994 can call methods on classes without :: in them, but not > >> on classes having them. > >> > >> $ perl6 -e 'class A { method foo { say "OH HAI" } }; A.new.foo' > >> OH HAI > >> > >> $ perl6 -e 'class A::B { method foo { say "OH HAI" } }; A::B.new.foo' > >> Method 'foo' not found for invocant of class 'A;B' > >> [...]
> > > > We clearly need more OO tests. Care to add that one (as TODO) to one of > > the S12 tests that is included in `make spectest`?
> > I added the new test file t/spec/S12-class/namespaced.t -- feel free > to merge it (and its single test) into another test file. I'm not sure > I got the TODO fudging right. >
In r32333 I got this passing and added the (now unfudged) test to spectest_regression. Thanks, Jonathan


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org