home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / misc / 3821 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Pointers
  5. Message-ID: <9232614.9350@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <BxJzzv.4H7@mentor.cc.purdue.edu> <721539019@sheol.UUCP> <1dujcuINNru4@early-bird.think.com> <1992Nov13.072834.4673@jyu.fi>
  9. Date: Sat, 21 Nov 1992 03:45:48 GMT
  10. Lines: 20
  11.  
  12. sakkinen@jyu.fi (Markku Sakkinen) writes:
  13.  
  14. >In article <1dujcuINNru4@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
  15. >> ...
  16. >>C's function pointers are almost exactly like the procedure variables that
  17. >>many other languages have.  
  18. [...]
  19. >>You can't cast between them and non-function pointers.
  20. >
  21. >In K&R C you could (char*), and in C++ you can (void*).
  22.  
  23. This is neither standard-conforming nor portable.
  24. For example, data pointers may be 16 bits while function pointers are 32
  25. bits (as is the case with certain memory models for DOS C compilers).
  26.  
  27. -- 
  28. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  29. This .signature virus is a self-referential statement that is true - but 
  30. you will only be able to consistently believe it if you copy it to your own
  31. .signature file!
  32.