Re: GDataInputStream API break



On Fri, 2009-11-13 at 10:11 -0500, Dan Winship wrote:
> On 11/13/2009 08:50 AM, Alexander Larsson wrote:
> > 
> > I don't like breaking API like this. Especially since I think its the
> > sync call that is really broken, and we should not also break the async
> > one.
> > 
> > Maybe we can do something like:
> > Add g_data_input_stream_read_until2() which doesn't consume the input.
> > #define g_data_input_stream_read_until g_data_input_stream_read_until2
> 
> That still breaks the API; programs expecting the old behavior will be
> silently switched to the new behavior when they are recompiled.

Yes, but hopefully some will run with new glib and not rebuild app and
catch the warning?

Its not the ideal solution, but is there a better?




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