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

make float associated fns... associated. #240

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

tgolsson
Copy link
Contributor

@tgolsson tgolsson commented Jan 3, 2021

It seems like max and min won't work as associated fns today, i.e., https://rune-rs.github.io/play/?c=CnB1YiBmbiBtYWluKCkgewoJbGV0IGEgPSAxLjA7CglsZXQgYiA9IDIuMDsKCWxldCBjID0gYS5taW4oYik7Cn0K. This fixes that and also adds powf, powi, and abs. (I think the caveat here is that this trades using them as loose functions for using them as assoc fns... I'm going to guess that with this change, the "loose function" path would be... std::core::f64::min? Or something like that.

@tgolsson tgolsson added bug Something isn't working rust-likeness Issues related to making Rune more like Rust through feature parity. labels Jan 3, 2021
@udoprog udoprog merged commit 0b2dc37 into rune-rs:main Jan 4, 2021
@udoprog udoprog added the changelog Issue has been added to the changelog label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working changelog Issue has been added to the changelog rust-likeness Issues related to making Rune more like Rust through feature parity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants