Not actually a snippet, but the explanation of an atrocity...

http://stackoverflow.com/questions/54137...-function-calls