Skip to content

Missing math.pow #99

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

Closed
Arnaz87 opened this issue Nov 1, 2018 · 6 comments
Closed

Missing math.pow #99

Arnaz87 opened this issue Nov 1, 2018 · 6 comments

Comments

@Arnaz87
Copy link

Arnaz87 commented Nov 1, 2018

The function math.pow is missing, math and all the other functions are there but not pow

@poga
Copy link
Contributor

poga commented Nov 1, 2018

Lua 5.3 deprecated and removed math.pow, use x^y instead.

@Arnaz87
Copy link
Author

Arnaz87 commented Nov 1, 2018

oh right, but my local lua 5.3.5 installation still has that function

@Arnaz87
Copy link
Author

Arnaz87 commented Nov 1, 2018

You are right, math.pow is not in the documentation anymore, maybe someone forgot to remove it in my version

@Arnaz87 Arnaz87 closed this as completed Nov 1, 2018
@FreeMasen
Copy link
Contributor

deprecation and removal are not entirely the same. It would be nice to have the ability to build the embedded Lua with LUA_COMPAT_MATHLIB, to allow for usage of deprecated math functions as they would be provided by a default installation of the language.

@jugglerchris
Copy link
Collaborator

I agree it sounds reasonable to be able to configure the Lua library used. Maybe this can come out of the work on #191 .

@FreeMasen
Copy link
Contributor

While I understand the desire to batch this change with another version of rlua, I was hoping this would be available with lua 5.3 since a consumer moving from 5.3 -> 5.4 is more than just dealing with this difference.

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

4 participants