home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / std / cplus / 1514 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.2 KB

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