Re: pointer casts
- From: Daniel Egger <degger fhm edu>
- To: Owen Taylor <otaylor redhat com>
- Cc: Miroslaw Dobrzanski-Neumann <mne mosaic-ag com>, GTK developers mailinglist <gtk-devel-list gnome org>
- Subject: Re: pointer casts
- Date: 13 Mar 2002 17:39:57 +0100
Am Mit, 2002-03-13 um 16.09 schrieb Owen Taylor:
> GCC has a non-standard extension that allows implicit casts betweeen (void *)
> and any function pointers.
Funny I was just reading relevant part of the C9x rationale while your
mail was comming in and it explicitely says:
"Even with an explicit cast, it is invalid to convert a function pointer
to an object pointer or a pointer to void, or vice versa."
Thus if Gtk+/Glib is doing that we might want to consider to change
that.
--
Servus,
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]