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

feat: implement call with ret type #3

Open
funatsufumiya opened this issue Nov 2, 2024 · 1 comment
Open

feat: implement call with ret type #3

funatsufumiya opened this issue Nov 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@funatsufumiya
Copy link
Contributor

Since I have not been able to keep up with Breaking Change, and not completed PR, I will just raise the diff.
0006ebe...funatsufumiya:spellua:feat_call_ret

With this change, we can specify return type, but this is limited for typical case, and not enough implementation.

driver.call(void, "hello")
driver.call(void, "print_add", 1, 2)
driver.call(void, "other_any_func", 1, "a", true)
let ret: float = driver.call(float, "add", 1, 2)
echo ret

Probably typedesc will fit in this case, but I don't know how to properly handle typedesc in macro. (This is reason why this diff is not complete PR.)

I would like to leave this diff as a suggestion only and leave it to you to decide how to handle it.

@glassesneo
Copy link
Owner

I'd appreciate your continuous contribution🙇‍♂️ I'll take a look at the diff and take into account.

@glassesneo glassesneo added the enhancement New feature or request label Nov 2, 2024
@glassesneo glassesneo self-assigned this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants