home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13536 < prev    next >
Encoding:
Text File  |  1992-09-11  |  976 b   |  39 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!udel!rochester!rit!news
  3. From: jeh@cs.rit.edu (James E Heliotis;;;)
  4. Subject: Re: Reference to a pointer??
  5. Message-ID: <1992Sep11.163603.18413@cs.rit.edu>
  6. Sender: news@cs.rit.edu
  7. Nntp-Posting-Host: edward
  8. Reply-To: jeh@cs.rit.edu
  9. Organization: Rochester Institute of Technology, Rochester, NY
  10. References: <ucosmo.716157377@mcl>
  11. Date: Fri, 11 Sep 1992 16:36:03 GMT
  12. Lines: 25
  13.  
  14. In article 716157377@mcl, ucosmo@mcl.ucsb.edu (Boris Burtin) writes:
  15. > :
  16. > :
  17. > So why can't you do this:
  18. > void f(int& *p)
  19. > {
  20. >     p = 0;
  21. > }
  22.  
  23. I did this once.  I believe it would be "int * & p", since it is a ref to
  24. a pointer to an int.  Too bad about reference syntax; overall interpretation
  25. of declarations in C/C++ follows rather consistent rules, but the overloaded
  26. '&' makes it a bit confusing.
  27.  
  28.  
  29. ---
  30.                 Jim Heliotis
  31.                 Rochester Institute of Technology
  32.                 Rochester, NY 14623-0887
  33.                 jeh@CS.RIT.EDU
  34.  
  35.  
  36.