Menu

Question to users: operator() vs operator->

If any one who thinks of using NoPtr has any feelings about following possible change to nature of DynObj/RRef, now is time to email me at oliver.schoenborn@utoronto.ca since I have to make a decision soon:

There have been discussions recently on the use of operator() vs operator-> to access the object pointed to by DynObj or RRef. The majority feeling seems to be that operator() is unusual for such task, misleading and too functor-like. Though I admit operator-> may be more common, DynObj and RRef were designed to be smart refs rather than smart pointers. The consequences of a change to operator-> would likely be to make DynObj and RRef smart pointers, small change but a few operators (operator< and operator==) would have to be changed.

Anyone strongly for/against please email me at oliver.schoenborn@utoronto.ca.

Posted by schoenborno 2003-06-02

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.