Article View: comp.std.c++
Article #645Re: Unitialized dynamic reference
From: Brian McCauley
Date: Sat, 07 Nov 1992 16:06
Date: Sat, 07 Nov 1992 16:06
17 lines
1028 bytes
1028 bytes
In article <1dessbINNn1b@darkstar.UCSC.EDU>, daniel@cse.ucsc.edu (Daniel R. Edelson) writes:
> ... is the following illegal?
>
> new (int&)
Yes the type of this expression is `int&*'. There is no such type!
(Because if you try to take the address of reference what you get is the
address of the thing referred to.)
> All the compilers I tried permitted it.
Get some better compilers - Borland 3.1 spotted the error.
\\ ( ) NO BULLSHIT! from BAM (Brian McCauley)
. _\\__[oo ============
.__/ \\ /\@
. l___\\ E-mail: B.A.McCauley@bham.ac.uk
# ll l\\
###LL LL\\
Technical Details
Message-ID:
<1992Nov7.160634.1@vax1.bham.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!fulcrum!bham!bhamvx!mccauleybaReferences:
<1dessbINNn1b@darkstar.UCSC.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!fulcrum!bham!bhamvx!mccauleyba From: mccauleyba@vax1.bham.ac.uk (Brian McCauley) Newsgroups: comp.std.c++ Subject: Re: Unitialized dynamic reference Message-ID: <1992Nov7.160634.1@vax1.bham.ac.uk> Date: 7 Nov 92 16:06:34 GMT References: <1dessbINNn1b@darkstar.UCSC.EDU> Sender: usenet@rs6000.bham.ac.uk (USENET News Service) Organization: University of Birmingham Lines: 17