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

Matrix constructors should be constant expressions whenever possible. #738

Closed
wdanilo opened this issue Jun 10, 2020 · 1 comment
Closed

Comments

@wdanilo
Copy link

wdanilo commented Jun 10, 2020

Hi! Currently the following code is rejected, but it should be accepted:

const DEFAULT_POSITION : Vector3<f32> = Vector3::new(1.0,0.0,0.0);
@sebcrozet
Copy link
Member

sebcrozet commented Jun 10, 2020

Hi! I'll close this issue because it is a duplicate of #521. This was not possible a year ago because of limitations of const-expression in Rust. Though it has improved a lot since then so we should try again now.

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

2 participants