Question Untitled 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #6 due Monday, 12 November (Mike O'Donnell)
Date: 2001, Nov 11
From: Kristina Matesa kmatesa

Hi, I am having a very hard time understanding the concept of passing by name and when it is different than passing by reference.I know that if there is a variable outside of the procedure and and another variable with the same name inside the procedure, and the one from the outside is passed to the inside, then which one is the one actually used in the evaluation? I know its supposed to be reevaluated each time a reference to the variable is made, but reevaluated in which scope? I am probably making things more complicated than they should be, but i cant get name and reference to evaluate differently.

any suggestions, example, etc?

kristina


Messages

1. Idea i get it by Kristina Matesa, 2001, Nov 11
2. Feedback Local variables are implicitly renamed by Mike O'Donnell, 2001, Nov 11
3. Warning But global vs. local is not the issue here by Mike O'Donnell, 2001, Nov 11

to: "Untitled"