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

  1. Path: sparky!uunet!mcsun!uknet!fulcrum!bham!bhamvx!mccauleyba
  2. From: mccauleyba@vax1.bham.ac.uk (Brian McCauley)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Unitialized dynamic reference
  5. Message-ID: <1992Nov7.160634.1@vax1.bham.ac.uk>
  6. Date: 7 Nov 92 16:06:34 GMT
  7. References: <1dessbINNn1b@darkstar.UCSC.EDU>
  8. Sender: usenet@rs6000.bham.ac.uk (USENET News Service)
  9. Organization: University of Birmingham
  10. Lines: 17
  11.  
  12. In article <1dessbINNn1b@darkstar.UCSC.EDU>, daniel@cse.ucsc.edu (Daniel R. Edelson) writes:
  13. > ... is the following illegal?
  14. >     new (int&)
  15. Yes the type of this expression is `int&*'. There is no such type!
  16. (Because if you try to take the address of reference what you get is the
  17. address of the thing referred to.)
  18.  
  19. > All the compilers I tried permitted it.
  20. Get some better compilers - Borland 3.1 spotted the error.
  21.  
  22.     \\   ( )  NO BULLSHIT! from BAM (Brian McCauley)          
  23.  .  _\\__[oo  ============
  24. .__/  \\ /\@
  25. .  l___\\     E-mail: B.A.McCauley@bham.ac.uk
  26.  # ll  l\\ 
  27. ###LL  LL\\
  28.