home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!udel!rochester!rit!news
- From: jeh@cs.rit.edu (James E Heliotis;;;)
- Subject: Re: Reference to a pointer??
- Message-ID: <1992Sep11.163603.18413@cs.rit.edu>
- Sender: news@cs.rit.edu
- Nntp-Posting-Host: edward
- Reply-To: jeh@cs.rit.edu
- Organization: Rochester Institute of Technology, Rochester, NY
- References: <ucosmo.716157377@mcl>
- Date: Fri, 11 Sep 1992 16:36:03 GMT
- Lines: 25
-
- In article 716157377@mcl, ucosmo@mcl.ucsb.edu (Boris Burtin) writes:
- > :
- > :
- >
- > So why can't you do this:
- >
- > void f(int& *p)
- > {
- > p = 0;
- > }
- >
-
- I did this once. I believe it would be "int * & p", since it is a ref to
- a pointer to an int. Too bad about reference syntax; overall interpretation
- of declarations in C/C++ follows rather consistent rules, but the overloaded
- '&' makes it a bit confusing.
-
-
- ---
- Jim Heliotis
- Rochester Institute of Technology
- Rochester, NY 14623-0887
- jeh@CS.RIT.EDU
-
-
-