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

Indirect object syntax in Rakudo #2143

Closed
p6rt opened this issue Sep 6, 2010 · 4 comments
Closed

Indirect object syntax in Rakudo #2143

p6rt opened this issue Sep 6, 2010 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 6, 2010

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

Searchable as RT77712$

@p6rt
Copy link
Author

p6rt commented Sep 6, 2010

From @masak

<masak> std​: class A {}; my $a = new A​:
<p6eval> std 32123​: OUTPUT«ok 00​:02 119m␤»
<masak> rakudo​: class A {}; my $a = new A​:
<p6eval> rakudo 77a72a​: OUTPUT«===SORRY!===␤Confused at line 22, near
"my $a = ne"␤»
* masak submits rakudobug
<moritz_> didn't std.pm carp about obsolete use of C++ constructor
about this one?
<masak> moritz_​: note colon at end
<tylercurtis> moritz_​: it's just indirect object syntax.
<moritz_> oh.
<masak> rakudo​: class A { method foo { say "OH HAI" } }; foo A.new​:
<p6eval> rakudo 77a72a​: OUTPUT«===SORRY!===␤Confused at line 22, near
"foo A.new​:"␤»
<masak> rakudo​: class A { method foo { say "OH HAI" } }; my $a = A.new; foo $a​:
<p6eval> rakudo 77a72a​: OUTPUT«===SORRY!===␤Confused at line 22, near
"foo $a​:"␤»
* moritz_ not sure that syntax is a good idea
<pmichaud> afaik, rakudo doesn't grok indirect object syntax yet
<masak> pmichaud​: it used to, though, right?
<pmichaud> masak​: I don't think we ever handled indirect object syntax, no.
<masak> ok.
<masak> marking it as TODO, then.

@p6rt
Copy link
Author

p6rt commented Dec 17, 2012

From @timo

this has been solved some time ago​:

class A { }; my $a = new A;
Unsupported use of C++ constructor syntax; in Perl 6 please use method
call syntax

< timotimo> std​: class A {}; my $a = new A;
<+p6eval> std a8bc48f​: OUTPUT«===SORRY!===␤Unsupported use of C++
constructor syntax; in Perl 6 please use method call syntax at
/tmp/laGzRrDlX5 line 1​:␤------> class A {}; my
  $a = new A⏏;␤Parse failed␤FAILED 00​:00 43m␤»

@p6rt
Copy link
Author

p6rt commented Dec 17, 2012

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

@p6rt
Copy link
Author

p6rt commented Dec 17, 2012

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

@p6rt p6rt closed this as completed Dec 17, 2012
@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