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

[Proposal]: using aliases for function pointers #4285

Closed
1 of 4 tasks
DanielBaumert opened this issue Dec 30, 2020 · 3 comments
Closed
1 of 4 tasks

[Proposal]: using aliases for function pointers #4285

DanielBaumert opened this issue Dec 30, 2020 · 3 comments

Comments

@DanielBaumert
Copy link

DanielBaumert commented Dec 30, 2020

  • Proposed
  • Prototype: Not Started
  • Implementation: Not Started
  • Specification: Not Started

Summary

using T = delegate*<int, int, int, void>;

Motivation

Language consistency. Without this syntax, you cannot give function pointer names either and the cast from any pointer into a function pointer can make your code hard to read, which is a big downside.

@333fred
Copy link
Member

333fred commented Dec 30, 2020

I'm going to close this as a duplicate of #1239. That issue is about letting both generic type parameters and language keywords be used in using aliases, and I would expect that to cover function pointers as well.

@333fred 333fred closed this as completed Dec 30, 2020
@CyrusNajmabadi
Copy link
Member

Yes. I'll test this to make sure this works.

@DanielBaumert
Copy link
Author

Does it work?

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

No branches or pull requests

3 participants