Re: Some pointer quiestions again
- From: Jens.Toerring@xxxxxxxxxxxxxxxxxxx
- Date: 31 May 2005 19:44:37 GMT
Mac <foo@xxxxxxx> wrote:
> On Tue, 31 May 2005 17:45:08 +0000, Jens.Toerring wrote:
> [snip]
>> [...] requiring that all pointer types
>> can be converted to and from a void pointer [...]
> Isn't this supposed to be all _object_ pointer types or something like
> that? What I am getting at is that ISTR that you cannot store a function
> pointer in a void pointer.
You're right, at last as far as I understand the standard only
conversion between object type pointers and a void pointer is
guaranteed to work. Allowing to convert between void and func-
tion pointers is listed as a "Common extension", so it's not
portable.
Regards, Jens
--
\ Jens Thoms Toerring ___ Jens.Toerring@xxxxxxxxxxxxxxxxxxx
\__________________________ http://www.toerring.de
.
- References:
- Some pointer quiestions again
- From: junky_fellow
- Re: Some pointer quiestions again
- From: Jens . Toerring
- Re: Some pointer quiestions again
- From: Mac
- Some pointer quiestions again
- Prev by Date: Re: sizeof...
- Next by Date: message buffering for logs, sprintf, etc...
- Previous by thread: Re: Some pointer quiestions again
- Next by thread: Re: Some pointer quiestions again
- Index(es):
Relevant Pages
|