gtk_object_set_data() and integers
- From: Michael Vance <briareos lokigames com>
- To: Gtk-List <gtk-list redhat com>
- Subject: gtk_object_set_data() and integers
- Date: Fri, 30 Jul 1999 08:45:22 -0700
Hello,
A simple question: how safe is storing int values in objects using
gtk_object_set_data(). I've been told many times that assuming that
sizeof(pointer) >= sizeof(int) can be a very bad decision, and I'm inclined to
agree. If so, are there any plans for facilities to take care of this issue? Is
it possible to have a user data structure defined which is simply the union of
the basic integral types and their pointers and have this be the new unit of
data storage in Gtk+?
Thoughts, comments, rationales for the current scheme, etc., appreciated...
m.
--
"How wonderful! How mysterious Programmer
I carry wood! I draw water!" Loki Entertainment Software
- Anonymous Tao poet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]