home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Unitialized dynamic reference
- Message-ID: <1992Nov10.013115.29919@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <1dessbINNn1b@darkstar.UCSC.EDU>
- Date: Tue, 10 Nov 1992 01:31:15 GMT
- Lines: 23
-
- In article <1dessbINNn1b@darkstar.UCSC.EDU> daniel@cse.ucsc.edu (Daniel R. Edelson) writes:
- >
- >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.
- >
-
- Wow, wonder what they allocated? IMHO: It does not make sense
- to allocate a reference, only an object.
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-