8 ms·
Dynamic_cast(C)++
- Groxx 17y agoxD Looks frighteningly real in a few places.
- rikthevik 17y agoMaybe there's a C++ equivalent for Poe's law where real C++ extension drafts are indistinguishable from parodies.
- aidenn0 17y agoEarly April fools?
- chasingsparks 17y agoTo reflect the enhancements to the language since 1983, the name of the language has been changed to: dynamic_cast<std::integer>(C)++. I would think so.
- drtse4 17y agoMyClass ptr = new MyClass; MyClass ptr = old MyClass; This one made my day :D
- deleted 17y ago[deleted]
- jafl5272 17y agoI love point #2: all local variables must be explicitly freed. Truly raises the bar on breaking backwards compatibility :)
- jhuckestein 17y agoHey, given how the price of memory has fallen I would consider that sufficiently backward compatible. Data doesn't need to be deleted these days. not even in RAM!
- WildUtah 17y agoDon't forget Bjarne Stroustrup's http://docs.google.com/viewer?a=v&q=cache:JyMHnEtpuZgJ:theory.cs.uni-bonn.de/~ignatios/white%2520space%252098.pdf+Overloading+of+C%2B%2B+Whitespace&hl=en&gl=us&pid=bl&srcid=ADGEESgbozSsC6N43XD1hDJI21nqkKGYoQtpxWs1SBP7sbzCDufxtMwHYFXRzk6KYe03FyaajeIinKacO3y504P2c9IkSOauuFp07rbTXpxIphOdogmJIzCefTt0PGwMp4WELDYVMr6u&sig=AHIEtbTVNtr9i9lVkpWGBQBTDSywn2IuJw http://docs.google.com/viewer?a=v&q=cache:JyMHnEtpuZgJ:t... Generalizing Overloading for C++2000. We'd all be a lot better off if we'd just listened back then.
- j_baker 17y agoYou knew the pedantry was going to come. The title is invalid syntax. Or at least I'm pretty sure it is unless you have a function or class named Dynamic_cast. I hate C++.
- jlangenauer 17y agoIt is - HN stripped out the template name from the title.
- wheaties 17y agoSomeone, somewhere will read this and use it as a basis for upcoming interview question answers. Now my job is more complicated by the fact that I have to separate the gullible from the ignorant. Thanks...
- memoryfault 17y agoshared_ptr & weak_ptr are way cooler