> Thanks to C++ for inspiration, I even have proposal for such > syntax! > > obj.free myFunc( args ) > obj.member myFunc( args ) > > How about:
obj.myFunc( args ); // calls member function, even if free function exists myFunc( obj, args ); // calls free function, even if member function exists That is the current behavior. :-) Regards - Puneet