🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #643

Unitialized dynamic reference

#643
From: Daniel R. Edelson
Date: Fri, 06 Nov 1992 22:50
16 lines
823 bytes
The draft standard has the following to say about references:

``The declaraion of a reference must contain an initializer except
when the declaration contains an explicit extern specifier, is a
class member, declaration within a class declaration, or is the
declaration of an argument or return type.''

So, given that, is the following illegal?

	new (int&)

All the compilers I tried permitted it.

Thanks,
Daniel Edelson
Technical Details
Message-ID: <1dessbINNn1b@darkstar.UCSC.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!ulowell!m2c!bu.edu!olivea!hal.com!darkstar.UCSC.EDU!daniel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ulowell!m2c!bu.edu!olivea!hal.com!darkstar.UCSC.EDU!daniel
From: daniel@cse.ucsc.edu (Daniel R. Edelson)
Newsgroups: comp.std.c++
Subject: Unitialized dynamic reference
Message-ID: <1dessbINNn1b@darkstar.UCSC.EDU>
Date: 6 Nov 92 22:50:51 GMT
Organization: University of California, Santa Cruz (CE/CIS Boards)
Lines: 16
NNTP-Posting-Host: oak.ucsc.edu