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

Support function pointers as arguments of function pointers #168

Open
OlegRa opened this issue May 25, 2022 · 0 comments
Open

Support function pointers as arguments of function pointers #168

OlegRa opened this issue May 25, 2022 · 0 comments
Labels
enhancement New feature or request postponed Not critical and can be fixed later question Further information is requested

Comments

@OlegRa
Copy link
Collaborator

OlegRa commented May 25, 2022

The current implementation of the inline signature parser handles all native types, user-defined types, and even generics correctly. The only possible use case that is not handled by this implementation is function pointers inside the function pointers. So construction like this will not be processed:

delegate*<int, delegate*<int, int>, int>

The second argument of this function pointer is the function pointer itself and now such recursive construction is not supported. In fact, I'm unable to find any example or practical use case for such a callback-in-callback approach but if someone can provide it I'll be happy to spend time implementing it.

@OlegRa OlegRa added enhancement New feature or request question Further information is requested postponed Not critical and can be fixed later labels May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request postponed Not critical and can be fixed later question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant