What is the "peanut butter and jelly example"?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • What is the "peanut butter and jelly example"?

      Hi, my dear authors!

      In Section 6.4, "DEFINING ACTORS AND COMPONENTS", you mentioned that "If you recall from my peanut butter and jelly example in Chapter 3, having a circular reference can potentially cause memory leaks." But as far as I know, there isn't any "peanut butter" in Chapter 3! So what is this sentence talking about? What is the peanut butter and jelly example?
      Thanks!
    • It's in the smart pointer section, which starts on page 68. The actual peanut butter & jelly example is on page 73 (but you should read the whole section if you haven't yet).

      -Rez