Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!columbia!read.columbia.edu!kearns From: kearns@read.columbia.edu (Steve Kearns) Newsgroups: comp.lang.c++ Subject: Help with references Message-ID: <6370@columbia.edu> Date: 22 Jun 89 22:16:39 GMT Sender: news@columbia.edu Reply-To: kearns@read.UUCP () Organization: Columbia University Department of Computer Science Lines: 25 I am using Cfront 1.2; I do not understand why my definition of adv() gives the error it does. Can someone help? class plist { int dummy; plist(); ~plist(); plist(plist& p2); plist& operator=(plist& p2); friend plist rest(plist& p2); plist& adv(); }; inline plist& plist::adv() { return (*this = rest(*this)); } // does not compile // error message is "un initialized reference _rresult" // { *this = rest(*this); return *this; } // compiles fine Thanks, -steve