Eeewwww! (How does the triangle draw itself?)
Eeewwww! (Why would this do anything other than print "3d_object(10,40,50)"?)
What's wrong with your restated premise?
Don't make objects do things they weren't born to do by subverting free functions with the operators' names.
polygon triangle; (triangle(), 0.0f, 1.0f, 0.0f, -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f);
my_context << triangle;
The whole idea behind objects is to make programming hierarchical. Typically a scene would draw an object. More over, one would typically make a console or something of the sort a part of that scene. Thus you are kind of slipping down a retarded logic slope.
Yeah it might not actually be that great. Looked cool at first.
No point in arguing anymore. I'll it out later and see if I like it. Thanks for all the replies.
No problemo. I like to be thanked when all I do is critique. Joking aside, we are simply trying to mold your habits, herWter. You are new to programming, obviously. If we all were lumberjacks, and Salem jumped out with a book on chainsaw safety, you would not be upset with him for looking out for you. Or if we were fire fighters, you would not get upset with matsp if he mentioned the proper proceedure for breaking a window, you would not feel like he is ruining your great idea.
I like helping others fix their code. My favorite way to help someone is to actually just read through the code they proudly present for all of us to see and point out their missing semicolon on line 167.. you know, the line with the variable that wasn't initialized before it was used. To be more direct, we all have a harder time reading code that follows no logical sort of format.