Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Simulating ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 11 Topic 9498 of 9828
Post > Topic >>

Re: Simulating new user-defined operators

by ManicQin <ManicQin@[EMAIL PROTECTED] > Apr 16, 2008 at 03:58 AM

On Apr 16, 7:18 am, Seungbeom Kim <musip...@[EMAIL PROTECTED]
> wrote:

> What would you say to
>
>      boost::format("%1% %2%") % x % y
>
> which has absolutely nothing to do with modulus, or even
>
>      std::cout << x << y
>      std::cin  >> x >> y
>
> which has absolutely nothing to do with bit ****ft?
>
> Not necessarily that I agree with the OP's proposal, but your argument
> seems to disapprove creative uses of operator overloading, including
those
> that did turn out to be successful and make it into the position of
being
> a standard idiom, just because they're creative.
>

Michael has a point, all those examples are already "standards", when
you look at them you
will intuitively understand them.
Giving operators a completely new meaning will only confuse.


-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 11 Posts in Topic:
Simulating new user-defined operators
Vidar Hasfjord <vattil  2008-04-14 12:43:32 
Re: Simulating new user-defined operators
Michael Aaron Safyan <  2008-04-14 21:25:12 
Re: Simulating new user-defined operators
"Martin T." <  2008-04-15 12:28:37 
Re: Simulating new user-defined operators
Edward Rosten <Edward.  2008-04-15 12:33:04 
Re: Simulating new user-defined operators
Alberto Ganesh Barbati &l  2008-04-15 23:19:14 
Re: Simulating new user-defined operators
Seungbeom Kim <musiphi  2008-04-15 23:18:03 
Re: Simulating new user-defined operators
ManicQin <ManicQin@[EM  2008-04-16 03:58:47 
Re: Simulating new user-defined operators
Vidar Hasfjord <vattil  2008-04-16 03:55:06 
Re: Simulating new user-defined operators
Carl Barron <cbarron41  2008-04-16 03:59:56 
Re: Simulating new user-defined operators
Michael Aaron Safyan <  2008-04-16 04:13:19 
Re: Simulating new user-defined operators
Vidar Hasfjord <vattil  2008-04-16 04:13:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:39:10 CDT 2008.