Re: Puzzled

Harrison R. Ulrich (hrulrich@marble.aud.alcatel.com)
Thu, 10 Apr 97 11:04:13 CDT

> > Why can I not think of the ROUTE as follows? (someone told me this is wrong)
> >
> > HER.age = HIS.age
> >
>
> I think you'd better regard a ROUTE as an one-way pipe.
>
> Consider your example : ROUTE HIS.age to HER.age
> As you know, when a new value is assigned to HIS.age, it is transferred to
> HER.age. Thus, HER.age reacts to HIS.age.
> However, HIS.age does not react to HER.age.
> I think you may think of the ROUTE as HER.age = HIS.age.
> The assignment occurs only when a value(possibly the current HIS.age's value)
> is assigned to HIS.age.

Now this drives me nuts! Hahaha

I didn't know:
'when a new value is assigned to HIS.age, it is transferred to
> HER.age. Thus, HER.age reacts to HIS.age.'
I might in the following context:

HER.age = HIS.age
diff = HIS.age - HER.age

Notice that assigning to HER.age didn't trigger the execution of the next statement.
I guess I must be missing something subtle here. Until some function that refers to
HER.age as an RVALUE is encountered, how is HER.age reacting to anything?