Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!ames!lll-winken!uunet!brunix!cs132046 From: cs132046@brunix (Garrett Fitzgerald) Newsgroups: comp.lang.c++ Subject: class->function Message-ID: <5774@brunix.UUCP> Date: 6 May 89 03:10:55 GMT Sender: news@brunix.UUCP Reply-To: cs132046@cslab7d.UUCP (Garrett Fitzgerald) Distribution: na Organization: Brown University Department of Computer Science Lines: 18 I just came up with an interesting situation. Earlier, I initialized the class so that Relation (*rel)[x]=NULL. In a later procedure, I wrote: while (!strcmp(rel[i]->inq_name(),rel_name)) I realized that I would be calling the function from a NULL pointer sometimes, and it seemed that would cause it to crash. Rather than try it, I decided to ask here: a) It won't work, right? b) Should it? (returns (type)0, or some such...) Thanks. -------------------------------- Campus Crusade for Cthulhu--when you're tired of the lesser of two evils. Sarek of Vulcan, a.k.a. Garrett Fitzgerald cs132046@brunix or st902620@brownvm.bitnet