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

Implement operator call() in dartc #1355

Closed
DartBot opened this issue Jan 26, 2012 · 10 comments
Closed

Implement operator call() in dartc #1355

DartBot opened this issue Jan 26, 2012 · 10 comments
Assignees
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request
Milestone

Comments

@DartBot
Copy link

DartBot commented Jan 26, 2012

This issue was originally filed by zundel@google.com


New in 0.7 rev of the spec, the call operator allows your object to be invoked as if it were a function and the logic defined in the body of the operator is invoked.

// simple test with no types in signature
class A1 {
  operator call() => 42;
}

var a1 = new A1();
Expect.equals(42, a1());

@DartBot
Copy link
Author

DartBot commented Jan 26, 2012

This comment was originally written by zundel@google.com


Set owner to zundel@google.com.

@DartBot
Copy link
Author

DartBot commented Apr 5, 2012

This comment was originally written by zundel@google.com


Removed the owner.

@kasperl
Copy link

kasperl commented Apr 17, 2012

Removed Area-Compiler label.
Added Area-Analyzer label.

@sethladd
Copy link
Contributor

sethladd commented May 7, 2012

Marked this as blocking #2931.

@bwilkerson
Copy link
Member

Added this to the M1 milestone.
Removed Priority-Medium label.
Added Priority-Low label.

@anders-sandholm
Copy link
Contributor

Marked this as being blocked by #2931.

@gbracha
Copy link
Contributor

gbracha commented Jun 12, 2012

Bear in mind that it is no longer an operator, just a magic method. See recent specs.

@scheglov
Copy link
Contributor

Set owner to @scheglov.
Added Accepted label.

@scheglov
Copy link
Contributor

@scheglov
Copy link
Contributor

@DartBot DartBot added Type-Defect P3 A lower priority bug or feature request area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Jun 18, 2012
@DartBot DartBot added this to the M1 milestone Jun 18, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

7 participants