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

return by reference of the BigInteger after copy assignment (operator =). #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SXongin
Copy link

@SXongin SXongin commented Apr 6, 2018

I think return by reference rather then by value after assignment (operator =) is more reasonable.
return a reference can make the struct BigInteger more similar to the built-in int.

consider the code following:
int one;
BigInterger big_one;
(one = 1) = 2;
(big_one = 1) =2;
after assignment, both big_one and one should be 2.
can do this by return reference after assignment.

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

Successfully merging this pull request may close these issues.

1 participant