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