Andrei Alexandrescu wrote: > Nick Sabalausky wrote: >> auto car = new Car(); >> auto wheel = car.getWheel_ThisIsAFunctionNotAProperty(); >> wheel.paintTheCar(); > > Because a function doesn't attempt to emulate a field.
Not really relevant, since the same applies to fields. auto car = new Car(); auto wheel = car.wheelFieldnotPropertyOrFunction; wheel.paintTheCar(); In this case, the wheel field contains a pointer back to the car. -- Rainer Deyke - rain...@eldwood.com