[Glade-devel] Some ideas on window's specific code.
Joaquin Cuenca Abela
e98cuenc@yahoo.com
Mon, 18 Aug 2003 03:16:47 -0700 (PDT)
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 <bighead@users.sourceforge.net>
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 -
> Glade-devel@lists.ximian.com
> 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