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

Rakudo needs a .does method in Object #577

Closed
p6rt opened this issue Jan 5, 2009 · 5 comments
Closed

Rakudo needs a .does method in Object #577

p6rt opened this issue Jan 5, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 5, 2009

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

Searchable as RT61978$

@p6rt
Copy link
Author

p6rt commented Jan 5, 2009

From @moritz

Rakudo r34428​:

./perl6 -e '1.does(Int)'
Method 'does' not found for invocant of class 'Int'

Every object should have .does method, which should check the same type
conformance as $object ~~ Type does.
There are many tests for .does spread out all over the test suite, many
tests
for .does and builtin types are in
t/spec/S02-builtin_data_types/sigils-and-types.t

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jan 19, 2009

From @jnthn

On Mon Jan 05 10​:22​:53 2009, moritz wrote​:

Rakudo r34428​:

./perl6 -e '1.does(Int)'
Method 'does' not found for invocant of class 'Int'

Every object should have .does method, which should check the same type
conformance as $object ~~ Type does.
There are many tests for .does spread out all over the test suite, many
tests
for .does and builtin types are in
t/spec/S02-builtin_data_types/sigils-and-types.t

We now have a .does method; assigning to moritz for some test action (I
did some tests for .does with parametric roles, some that I've still yet
to make pass...unfudging tests for non-parametric roles would be good,
though. :-))

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Jan 19, 2009

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

@p6rt
Copy link
Author

p6rt commented Jan 22, 2009

From @moritz

Tests are for example in t/spec/S12-role/basic.t

@p6rt
Copy link
Author

p6rt commented Jan 22, 2009

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

@p6rt p6rt closed this as completed Jan 22, 2009
@p6rt p6rt added the Todo label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant