I
ImpalerCore
On Tue, 2011-11-29, Joe keane wrote:
...
Operator overloading ties in with many of the other C++ features -- I
don't think it would be very useful as an isolated feature.
It depends on how you view the difference between something like
c_day_duration c_date_subtract( struct c_greg_date date1,
struct c_greg_date date2 );
vs
c_day_duration operator-( struct c_greg_date date1,
struct c_greg_date date2 );
I would be lying if I didn't desire this kind of overloading at some
verbose points in my code, at least for struct types where
mathematical operations made some sense. But I can certainly get by
without it. The point is that I don't think one would need a class
abstraction to make use of it.
Best regards,
John D.