Re: Glib->log() and %-style format strings



Kevin Ryde wrote:
"muppet" <scott asofyet org> writes:
I don't think that g_log() provides any formatting features that perl doesn't
already trump.

I suppose automatically putting args through perl's sprintf could be
cute, to make it look more like g_log().  Though if it's always meant to
have been a fixed string then that's probably incompatible.

Yeah, that would be handy. We do this in Gtk2::MessageDialog. But it would be an incompatible change now unless we heuristically determine whether to use interpolation or not by looking at the number of arguments. I don't think it's worth it.



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