home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!agate!darkstar.UCSC.EDU!daniel
- From: daniel@cse.ucsc.edu (Daniel R. Edelson)
- Newsgroups: comp.std.c++
- Subject: Re: Unitialized dynamic reference
- Date: 7 Nov 1992 17:29:59 GMT
- Organization: University of California, Santa Cruz (CE/CIS Boards)
- Lines: 17
- Message-ID: <1dguenINNap3@darkstar.UCSC.EDU>
- References: <1dessbINNn1b@darkstar.UCSC.EDU> <1992Nov7.160634.1@vax1.bham.ac.uk>
- NNTP-Posting-Host: oak.ucsc.edu
-
- In article <1992Nov7.160634.1@vax1.bham.ac.uk> mccauleyba@vax1.bham.ac.uk (Brian McCauley) writes:
- >In article <1dessbINNn1b@darkstar.UCSC.EDU>, daniel@cse.ucsc.edu (Daniel R. Edelson) writes:
- >> ... is the following illegal?
- >>
- >> new (int&)
- >Yes the type of this expression is `int&*'. There is no such type!
- >(Because if you try to take the address of reference what you get is the
- >address of the thing referred to.)
-
- This could conceivably be interpreted as returning the
- address of the referent (just like taking the address
- of a reference), though I don't think that's a
- correct interpretation. My point is if this is clearly
- illegal, some explicit mention should perhaps be made
- in the draft standard.
-
- Daniel Edelson
-