Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » What does , means?
Re: What does , means? [message #15144 is a reply to message #15142] Wed, 02 April 2008 17:39 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Quote:

Once again I'm not "guru enough" to know whether comma can be overloaded (but why not, looks reasonable ... except it makes me feel sick when I imagine it ).

I had to look it up also, and yes, it can be done. But I never did this myself. I couldn't and can't find a good reason to do this, not even as an alternative to cout << Smile. Especially since arguments can be evaluated more than once. But still it is not totally improbable that Mirek used some overloading magic and constructed some font info structure with the help of such a statement. Anyway, without a file or line number, and judging by the fact that it was posted in the general C++ section, I had no way to be sure if it's from U++ and where to find it, so I couldn't look it up to see that it was overloaded or not. And fortunately, It wasn't Smile.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optimized memcmp for x86
Next Topic: THISBACK and function-overloading
Goto Forum:
  


Current Time: Mon Apr 29 06:37:44 CEST 2024

Total time taken to generate the page: 0.03029 seconds