Hard-assed Bug Fixin' comment

greenspun.com : LUSENET : Joel on Software : One Thread

about the 'null reference impossible in c++', try this :

///////

void myFunc(int& a) { a = 0; }

int* myPtr = NULL; myFunc(*myPtr);

///////

ok, it's horrible code. the point is : it's possible to get a NULL reference.

-- Anonymous, October 04, 2001


Moderation questions? read the FAQ