Question L and R values in retrospect 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Take-home midterm exam, due 5 November (Mike O'Donnell)
Re: More Inventory of midterm problems (Mike O'Donnell)
Date: 2001, Nov 05
From: Avi Schwab ajschwab

After researching the exam questions and completing the exam, I still have some questions about calculating l and r values.

  1. Does it matter which side of the assignment is calculated first, or is there some convention for calculating from left to right or vice versa? It doesn't seem like it would matter, but I would like to be sure because order matters in all of the preliminary operations.
  2. In the lecture notes, it says that "On the right-hand side of an assignment, everything is automatically mapped to an r value." I would take this statement to mean that the conversion of the right-hand side to r-values is done implicitly in the computer and would not have to be documented in an explicit description of the execution. (But isn't all of this done implicitly? If so, what is the use of mentioning "automatically"?) However, examples I have seen do not demonstrate this, treating values on the left and right side in the same way at the start of the execution. Also, this would make the assignment in problem 5 take less steps than mentioned in the problem.
  3. Does anyone have any good references in general relating to l and r values. For as much time we have taken on this subject, I would like to have more documentation than the page of lecture notes on the subject. I don't think it is even mentioned in the book


Any input would be appreciated.
Thanks,
Avi.


Messages

to: "L and R values in retrospect"