Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

c

Name: Anonymous 2011-10-29 3:46


#ifndef __GC__
#define __GC_IS_SHIT__
#endif

Name: Anonymous 2011-10-29 3:56

Have fun writing your deconstructors. GC is awesome.

Name: Anonymous 2011-10-29 4:02

>>2

free(x);


GC IS SHIT

Name: Anonymous 2011-10-29 4:20

>>3
The struct x pointed to contained another pointer. Now you're screwed.

Name: Anonymous 2011-10-29 4:23

>>4

free(*x);
free(x);

GC IS poop

Name: Anonymous 2011-10-29 4:43

>>5
x was a struct cons {void *car, struct cons *cdr} and the only element of this linked list you had a pointer to.
Good job.

Name: Anonymous 2011-10-29 4:58

>>6

thanks.

Don't change these.
Name: Email:
Entire Thread Thread List