Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

whats wrong with c++?

Name: Anonymous 2012-06-14 4:55

it has namespaces, better standard libraries, a plethora of modern conveniences, and all of c's functionality.

if you don't like objects don't use them

if you want to feel like a programming badass and do everything low level then learn assembly

Name: Anonymous 2012-06-15 0:40

>>32
true, but the solution in that case is to use a well tested and bug free compiler.

>>33
challenge:

make a facility in seeples that automatically creates a pretty printing method for any class. This is similar to the implicit destructor method that calls the destructor on all of its members, except it is not a built in feature. Write one piece of code in C++ that will automatically create this method for every single class you define. You should not have to write any extra text in the class definition, and there should be no duplicate listings of the members of the class. Duplicate listings of members are error prone and can easily go out of date with respect to the class definition. You can only use features in standard C++. Good luck.

If you believe that this example has no point, and that debuggers are sufficient for getting such information, then change the context to streaming the class instance over an internet connection. Certain elements of the class, based upon their type, will have different sizes and different rules for endian conversion. Make a mechanism that automatically generates a serializer for your favorite protocol.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List