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

.* and .+ method call syntax doesn't work in Rakudo #1498

Closed
p6rt opened this issue Feb 15, 2010 · 7 comments
Closed

.* and .+ method call syntax doesn't work in Rakudo #1498

p6rt opened this issue Feb 15, 2010 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Feb 15, 2010

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

Searchable as RT72818$

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<diakopter> rakudo​: say 1.*WHAT
<p6eval> rakudo 70667a​: OUTPUT«get_iter() not implemented in class 'Sub' [...]
<masak> o.O
<masak> stop producing weird things! :)
<masak> I can't keep up.
<masak> now, about that 1.*WHAT thing...
<masak> rakudo​: say 42.WHAT
<p6eval> rakudo 70667a​: OUTPUT«Int()␤»
<masak> rakudo​: say 42.?WHAT
<p6eval> rakudo 70667a​: OUTPUT«Int()␤»
<masak> rakudo​: say 42.+WHAT
<p6eval> rakudo 70667a​: OUTPUT«get_iter() not implemented in class 'Sub' [...]
<moritz_> rakudo​: say 42.*WHAT
<p6eval> rakudo 70667a​: OUTPUT«get_iter() not implemented in class 'Sub' [...]
<masak> ok, so it's the "call all methods" thing.
<masak> it's broken.
<masak> what's interesting is that .? isn't broken. :)
<masak> I think it should be, if correctly implemented.

@p6rt
Copy link
Author

p6rt commented Aug 12, 2010

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

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

NOM

bbkr​:nom bbkr$ ./perl6 -e 'say 1.*WHAT'
===SORRY!===
Cannot use .* on a non-identifier method call at line 1, near ""

bbkr​:nom bbkr$ ./perl6 -e 'say 1.?WHAT'
===SORRY!===
Cannot use .? on a non-identifier method call at line 1, near ""

bbkr​:nom bbkr$ ./perl6 -e 'say 1.+WHAT'
===SORRY!===
Cannot use .+ on a non-identifier method call at line 1, near ""

bbkr​:nom bbkr$ ./perl6 -e 'say 1.WHAT'
Int()

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

confirmed on IRC that this is correct behavior,

[14​:37] <jnthn> bbkr​: There already are a bunch of tests for .+ and .*
[14​:37] <jnthn> calling_sets.t or something.
[14​:38] <moritz> S12-methods/calling_sets.t
[14​:40] <bbkr> i've checked calling_sets.t and there is no test which
checks "dies_ok {$foo.*MACRO }", IMO worth adding
[14​:41] <jnthn> bbkr​: OK, +1
[14​:41] <jnthn> bbkr​: But it's actually a compile time error
[14​:41] <jnthn> So it'd need eval_dies_ok orso

taken for tests

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

From @moritz

I've added a test to S12-methods/calling_sets.t, but nom doesn't run
that test yet.

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

From @moritz

test is now run, closing ticket.

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

@moritz - 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