Search:

Type: Posts; User: CornedBee

Search: Search took 0.17 seconds.

  1. Replies
    17
    Views
    5,015

    I think Bubba means that he finds an explicit...

    I think Bubba means that he finds an explicit rule about avoiding heap objects superfluous, because he formulates the same rule in a positive way: use the right tool for the right job.

    But having...
  2. Replies
    17
    Views
    5,015

    I think there's room for misunderstanding here. ...

    I think there's room for misunderstanding here.

    It is preferable that any function that allocates memory also frees it before it returns. However, sometimes memory (or any other resource) must...
  3. Replies
    17
    Views
    5,015

    Use RAII religiously. Don't allocate any resource...

    Use RAII religiously. Don't allocate any resource that isn't released by a destructor.

    Once you really do that, the only remaining problem comes from owner cycles. To avoid these, do as Elysia...
Results 1 to 3 of 3