tiemann@YAHI.STANFORD.EDU (Michael Tiemann) (05/16/89)
While it often makes sense to talk about null pointers, since pointers are forever walking down lists, it almost never makes sense to talk about null references, since references never go anywhere. As has been pointed out here before, the "right" way to do null references is to define a null object: Foo& r = TheNullFooObject; Now you know whether `r' is the null reference or not. Note that this is like some Pascal systems, where NIL is not 0. Michael