🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: reference variables

#21
From: Jan Schiefer
Date: Sat, 08 Aug 1992 09:57
19 lines
1103 bytes
tmorgan@andromeda.rutgers.edu (Why? Only I Can Be Me) writes:
> I am having a problem finding documentation telling me whether a reference
> can be used in a c++ class.  I am using Borland C++ 3.1 and it gives me an

Yes, class member functions can take references as parameters and return
references. It is also possible to have a reference as a data member, but it
must be initialized properly.

> error when I try to do it.  However, I am not able to figure out how to do it
> or why I get the error.  So...is it possible.  If so, how 'bout an example.

What are you trying to do? What error do you get?

Cheers,
        Jan

--
             Jan Schiefer, DL5UE, jan@nasobem.stgt.sub.org
                 "Oracle et laboracle!"   - Fritz Hohl
Technical Details
Message-ID: <39478.920808@nasobem.stgt.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.uni-ulm.de!news.belwue.de!news.uni-stuttgart.de!delos!nasobem!jan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.uni-ulm.de!news.belwue.de!news.uni-stuttgart.de!delos!nasobem!jan
From: jan@nasobem.stgt.sub.org (Jan Schiefer)
Newsgroups: de.comp.lang.c++
Subject: Re: reference variables
Message-ID: <39478.920808@nasobem.stgt.sub.org>
Date: Sat, 08 Aug 92 9:57:59 GMT
Distribution: world
Lines:  19