None I am not convinced 

Forum: U Chicago, Com Sci 221, autumn 2000
Re: News Take-home midterm exam, due 6 November (Mike O'Donnell)
Re: Question About the last problem in the Mid-term (Zhenglong Gu)
Re: Feedback lvalue vs rvalue (Jake Bartolone)
Date: 2000, Nov 08
From: Zhenglong Gu Zhenglong

First,in the first assignment( x = y), x,y have the same type. in the second( *x=y), x is a pointer which point to the object with the same type as y(for mike:).

The more I saw you guys' discussion, the more I am convinced that I am right, i.e. *x=y means put l(y) in l(x), which means setting r(x) equal to l(y)(for Torkiat). Ok, if Jake is right, i.e., " you can't put l(y) into l(x) because you can't store an lvalue directly into another location", then I am done. No question. But as my understanding, l value is a location or name of location, r value is stuff stored in location. l value can be still stored in some other location, actually it is what pointer means. By saying *x = y, we means x is a location, it(l(x)) stores the location name of y(l(y)) after this assignment. (r(x) = l(y)). Let's put in another way, *x=y equals to saying x = &y, put r(&y) in l(x), what is r(&y)? l(y) as far as can see. Sorry if I seem to be too stubborn.


Messages

1. More think about what a pointer means?? by Michael C. Brizic, 2000, Nov 08
2. Disagree You didn't understand me by Torkiat Krutpum, 2000, Nov 09

to: "I am not convinced"