[webkit-dev] PSA: Don't try to hold onto temporaries with references

Holger Freyther zecke at selfish.org
Sun Oct 3 11:35:05 PDT 2010

On 10/04/2010 01:31 AM, Darin Adler wrote:

> What you say here about object lifetime is not correct. I thought the same thing a year or so back. But the C++ language keeps these objects alive until the end of the block. Some other programmers on the project challenged me when I made this assertion, and we found that I was wrong and they were right.

ah, I was not aware that it is until the end of the block, I thought it is
more local.

More information about the webkit-dev mailing list