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

for LGFunction type #51

Closed
skyhit opened this issue Sep 9, 2015 · 2 comments
Closed

for LGFunction type #51

skyhit opened this issue Sep 9, 2015 · 2 comments
Labels

Comments

@skyhit
Copy link

skyhit commented Sep 9, 2015

why it requires the return type to be int, can not it be float?

@yuin yuin added the question label Sep 9, 2015
@yuin
Copy link
Owner

yuin commented Sep 9, 2015

Return value of the LGFunction indicates the number of returned value from Lua stack, so it must be an integer. If float value is accepted, vm have to validate it is an integer. It is wasteful.

@skyhit
Copy link
Author

skyhit commented Sep 9, 2015

yes, I finally understand that:) thanks

@skyhit skyhit closed this as completed Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants