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

2.31 #178

Closed
iMinder opened this issue Apr 5, 2015 · 2 comments
Closed

2.31 #178

iMinder opened this issue Apr 5, 2015 · 2 comments

Comments

@iMinder
Copy link

iMinder commented Apr 5, 2015

r1 = v2, this is illegal, r1 is normal int & , can not bind to cont int

@pezy
Copy link
Collaborator

pezy commented Apr 5, 2015

@iMinder r1 = v2; It is assigned value to v1(which is bind to r1), rather than bind again. You can try it by compiler.

@Mooophy
Copy link
Owner

Mooophy commented Apr 5, 2015

Agree @pezy
@iMinder You can look at it like this: After defining r1, r1 becomes another name for variable v1, a.k.a aliasing.
So:

r1 = v2;

is equivalent to :

v1 = v2;

Like @pezy said, this statement has nothing to do with binding.

@Mooophy Mooophy closed this as completed Apr 8, 2015
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

3 participants