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

  1. Path: sparky!uunet!ulowell!m2c!bu.edu!olivea!hal.com!darkstar.UCSC.EDU!daniel
  2. From: daniel@cse.ucsc.edu (Daniel R. Edelson)
  3. Newsgroups: comp.std.c++
  4. Subject: Unitialized dynamic reference
  5. Message-ID: <1dessbINNn1b@darkstar.UCSC.EDU>
  6. Date: 6 Nov 92 22:50:51 GMT
  7. Organization: University of California, Santa Cruz (CE/CIS Boards)
  8. Lines: 16
  9. NNTP-Posting-Host: oak.ucsc.edu
  10.  
  11.  
  12. The draft standard has the following to say about references:
  13.  
  14. ``The declaraion of a reference must contain an initializer except
  15. when the declaration contains an explicit extern specifier, is a
  16. class member, declaration within a class declaration, or is the
  17. declaration of an argument or return type.''
  18.  
  19. So, given that, is the following illegal?
  20.  
  21.     new (int&)
  22.  
  23. All the compilers I tried permitted it.
  24.  
  25. Thanks,
  26. Daniel Edelson
  27.