News for hackers. Stuff that matters.
Re:More Dirty Coding Tricks from Game Developers (2010) by SamReidHughes on Monday August 03, 2015 @05:45AM (#9994703)
> if we assume that we're working with modern codebase written by adequate developers

Yeah, come to think of it if there's a chance this function came from a pre-C++11 codebase I wouldn't be so sure that the caller wasn't supposed to delete those nodes. Well, it'd be an odd thing for this particular function, I guess, but it's something I've seen or might have done, in general. In that case maybe I'd have had the function take an output parameter instead, in order to give it a scary variable name.

There are no comments on this comment yet.