Originally posted by mark stone:
are you sure you have the right code here:
{a.i = a.i*2;} is this ok ? can u verify this again. this assignment itself looks vague. we are not even discussing protected or etc. just the assignment. the RHS looks like some typo error.
Why does this look vague to you? Even out of context, this assignement is just saying "take the member i in the object referenced by variable a, and multiply this by two, then store it back into the memory associated with data member i in the object referenced by variable a."
It's the same type of construct as
i = i*2.
Where are you confused?
Rob
[ January 17, 2002: Message edited by: Rob Ross ]