Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling methods in many-jointed classes doesn't work #362

Closed
p6rt opened this issue Oct 16, 2008 · 6 comments
Closed

Calling methods in many-jointed classes doesn't work #362

p6rt opened this issue Oct 16, 2008 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Oct 16, 2008

Migrated from rt.perl.org#59928 (status was 'resolved')

Searchable as RT59928$

@p6rt
Copy link
Author

p6rt commented Oct 16, 2008

From @masak

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.

@p6rt
Copy link
Author

p6rt commented Oct 16, 2008

From @moritz

On Thu Oct 16 06​:22​:58 2008, masak wrote​:

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`?

@p6rt
Copy link
Author

p6rt commented Oct 16, 2008

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 16, 2008

From @masak

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.

@p6rt
Copy link
Author

p6rt commented Nov 4, 2008

From @jnthn

On Thu Oct 16 10​:22​:06 2008, masak wrote​:

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

@p6rt
Copy link
Author

p6rt commented Nov 4, 2008

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 4, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant