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

Avoid instantiation with assignment operator #41

Open
elect86 opened this issue Sep 26, 2016 · 0 comments
Open

Avoid instantiation with assignment operator #41

elect86 opened this issue Sep 26, 2016 · 0 comments

Comments

@elect86
Copy link

elect86 commented Sep 26, 2016

Hi,

Let me first say this is an awesome project!

Second, I'd like to know if it could be possible to change the assignment operator behaviour to avoid a new instantiation whenever the object already exists, for example:

Vec2 a = new Vec2()
a = b + c * 2;

here the assignment operator may point a set method instead of valueOf

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

1 participant