🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #23

Re: reference variables

#23
From: Why? Only I Can Be Me
Date: Tue, 11 Aug 1992 15:30
17 lines
770 bytes
I do something similar to the following:
class X {
   int &var ;
public:
   constructor that initializes var...doesn't work.
   destructor
   rest of functions
     . 
     .
     .
} ;

I don't remember the error that I am getting, as I am doing this from memory.
I hope that what I gave you helps solve my dilemma.

Thanks,
Talib
Technical Details
Message-ID: <Aug.11.11.30.04.1992.28134@andromeda.rutgers.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!jvnc.net!rutgers!andromeda.rutgers.edu!tmorgan
References: <39478.920808@nasobem.stgt.sub.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!jvnc.net!rutgers!andromeda.rutgers.edu!tmorgan
From: tmorgan@andromeda.rutgers.edu (Why? Only I Can Be Me)
Newsgroups: de.comp.lang.c++
Subject: Re: reference variables
Message-ID: <Aug.11.11.30.04.1992.28134@andromeda.rutgers.edu>
Date: 11 Aug 92 15:30:04 GMT
References: <39478.920808@nasobem.stgt.sub.org>
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 17