gtk_object_set_data() and integers



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]