Here is an email I received in response to one of my essays.
Here’s a good C++ one:
Make liberal use of the operator , That’s right, you can overload a comma. Here’s an example:
Guess what it prints — f int. It could be made better by putting all the functions in different headers. You could even stick the operator and define in a header and include it some places and not in others so that sometimes you call f(string, int) and other times f(int) with the same parameters. This one could be truly evil and even allow you to 'call' forms of f that shouldn’t even exist, or make the operator, modify the data as well.
Endless amounts of fun await!!
This page is posted |
http://mindprod.com/feedback/unmain/overload.html | |
Optional Replicator mirror
|
J:\mindprod\feedback\unmain\overload.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.219.220.21] |
| |
Feedback |
You are visitor number | |