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

Fixed lambda to support pointer return types #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ergon-vanja
Copy link

@ergon-vanja ergon-vanja commented Aug 4, 2020

Hey, I was doing some project and was using your lib for it. Figured out it doesn't support following:
lambda (int, int) -> char* {}

The bolded part (return type) in this case where I use a pointer wouldn't expand correctly since it would treat char and * as separate tokens. Also using parens around is not possible. So I did the changes to support it correctly.

Now the following:
lambda (int, int) -> (char*) {}
expands to:
char* lambdaxxx (int, int) {}

Cheers,
Vanja

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

Successfully merging this pull request may close these issues.

1 participant