Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Section
Column
width35%
Code Block
languagecpp
titleTest.cc
firstline1
linenumberstrue
#include stuff.h

int goodbye(void) {

     int c << testme
     int d

     d = m.noreally_goodbye()

     return 0
} 

int noreally_goodbye(void) {

     int x << testmeagain

     return 0
} 
Column
width35%

Lines 1013-1518: New methodfunction, noreally_goodbye.

Line 7: Inserted call to new method.

Always be sure to:

  • De-allocate memory
  • Motherhood statement 2
  • And don't forget to de-allocate memory
 

6, 8: Allocate space for return value, call new function.

Warning

Beware calls in this context! Because:

  • There
  • Are
  • Some
  • Nasty
  • Consequences...