Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!njin!njitgw.njit.edu!mars.njit.edu!hp6713 From: hp6713@mars.njit.edu (Himanshu N. Pandit) Newsgroups: comp.lang.c++ Subject: Circular Relationships Object Oriented Databases Message-ID: <1991Jun2.131053.20065@njitgw.njit.edu> Date: 2 Jun 91 13:10:53 GMT Sender: news@njit.edu Organization: New Jersey Institute of Technology Lines: 31 Nntp-Posting-Host: mars.njit.edu Hi Folks, 06/02/91 Thanks to all who responed to me for NIH Libraries. Those who wants to know about how to get it, please call me at (914) 724-4192. I was wondering lately have we changed name of this group to C++ and American Waitresses ?? (just kidding) I am trying to implement a smalltalk like feature called circular relationship in C++. What I mean is as follows. Class Employee has reference to say for example Class Payroll. i.e a pointer to object of class payroll. Now Class payroll also has a pointer to obbject of class Employee. Got it ? A has reference to B and B has reference to A. How would I go on implementing this ? I tried extern class B in class A def file and extern Class A in class B def file. But it gives me error as it could not lookup complete method for incomplete type def. Any help would be appreciated. Himanshu Pandit hp6713@mars.njit.edu P.S. I have not yet used NIH library. The moment I do, I will post my experience.