Re: [Vala] Error in glib-2.0.vala binding of g_strdup_printf



Hi Cayle,

On Die, 2006-09-12 at 23:01 -0500, Cayle Graumann wrote:
    Thanks for all the advice.  Moving everything to the vapi dir
worked well.  But in duplicating one of the GenX simple demos to test
the new binding, 
I discovered another small error in the glib bindings. 

The binding for string.printf should be made static, since
g_strdup_printf does not take the object as it's first argument. 

It depends how you look at it. Something like

"%s: %d".printf ("Hello", 5)

works perfectly fine. Have you encountered a situation where it doesn't
work at all when using string.printf as an instance method?

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]