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

Can't smartmatch against a module in Rakudo #1956

Closed
p6rt opened this issue Jul 20, 2010 · 5 comments
Closed

Can't smartmatch against a module in Rakudo #1956

p6rt opened this issue Jul 20, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 20, 2010

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

Searchable as RT76610$

@p6rt
Copy link
Author

p6rt commented Jul 20, 2010

From @masak

<masak> rakudo​: module M {}; say 42 ~~ M
<p6eval> rakudo 278366​: OUTPUT«Method 'ACCEPTS' not found for non-object [...]
* masak submits rakudobug
<masak> mathw++ for discovering it.
<moritz_> what should it do?
<moritz_> is M a type?
<masak> print "0\n"
<masak> moritz_​: I'd expect it to be an object, given that everything
is, if pressed.

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 13, 2012

From @jnthn

On Tue Jul 20 14​:11​:46 2010, masak wrote​:

<masak> rakudo​: module M {}; say 42 ~~ M
<p6eval> rakudo 278366​: OUTPUT�Method 'ACCEPTS' not found for non-
object [...]
* masak submits rakudobug
<masak> mathw++ for discovering it.
<moritz_> what should it do?
<moritz_> is M a type?
<masak> print "0\n"
<masak> moritz_​: I'd expect it to be an object, given that everything
is, if pressed.

module M {}; say 42 ~~ M
Bool​::False

Better. Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jul 15, 2012

From @bbkr

Tests in​:

Raku/roast@d92fdf6058

@p6rt
Copy link
Author

p6rt commented Jul 15, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant