H
Howard
Kapt. Boogschutter said:There is a difference I believe that xxxx->yyyy is used if xxxx is a pointer
to an object/class and xxxx.yyyyy if xxxx is the object/classs
That's true, but look at the question again. The poster explicitly used
(*aa).f(), and that's using a de-referenced pointer, which is the same thing
as your xxxx.yyyy example.
His question was why the "aa->f()" form is needed if you can accomplish it
using "(*aa).f()".
I would guess it's a convenience. It's sure easier to type, in my opinion!
-Howard