This goto is not at all related to windows code. It falls on one of the legal uses of goto, error handling. As C doesn't have the slightlest clue of exceptions, there no much choices to use a goto to release the allocated resources at the end of the function (the alternative is a bunch of spaguetti code, much messier than using goto).
Cheers, --- Archit Baweja <[EMAIL PROTECTED]> wrote: > Hi > > I noticed that in some source files that Joaquin has > been using some "goto" > statements to make glade3 compilable on windows > platform. (lblError is a goto > tag I saw in there). Don't you think it is better to > use preprocessor flags > and #ifdef's rather than lblError? or is that "goto" > for something else besides > window's specific code. We all know "goto" is not > all that an encouraged > programming practice. > > Cheers! > Archit > _______________________________________________ > Glade-devel maillist - > [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/glade-devel ===== Joaquin Cuenca Abela e98cuenc at yahoo dot com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com _______________________________________________ Glade-devel maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/glade-devel
