[Egtk-discuss] Wrapping variadic functions
Paolo Redaelli
paolo.redaelli at poste.it
Wed Feb 22 21:57:13 UTC 2006
Just a brief note for people worried about variadic functions and how to
wrap them.
Don't wrap them, just write a function that mimic variable number of
arguments using an ARRAY or a COLLECTION. if you think it is not
efficient try peeking into GTK sourcecode. You will be surprised to
discover that most of the variadic functions just makes repeated calls
to other non-variadic functions, much like an Eiffel feature will do.
For example look at gtk_list_store_set_valist.
Just 2€¢
Paolo
More information about the Egtk-discuss
mailing list