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

Dynamic typing in C++

Name: Anonymous 2011-04-15 8:21

This shit could work:

1. Derive every single fucking class from class Object.

2. Make every fucking method return only Objects and accept only Object references as parameters

3. dynamic_cast everything

4. throw exceptions if dynamic_cast fails

why didn't I think of this before

Name: Anonymous 2011-04-15 9:18

>>3
implicit conversions to allow expressions like "obj + 1".
Why this?

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