2 ms·
I think 3 responses here have misinterpreted what you're illustrating. (e.g. "won't that leak?!?!") KeytarHero could have wrote: "Here's a much shorter more re
by jasode 12y ago
I think 3 responses here have misinterpreted what you're illustrating. (e.g. "won't that leak?!?!")
KeytarHero could have wrote: "Here's a much shorter more realistic version of new/delete code that will have problems such as leakage after exceptions"
Since he didn't make that explicit, 3 replies seem to have misinterpreted the post as: "Here's a much shorter version that won't leak and doesn't need RAII"
Basically, his example is supposed to be "wrong" but it's a shorter version of "wrong".
- KeytarHero 12y agoExactly. Thanks.