IMHO it is not recommended because it breaks the "natural" flow of code
making it hard to understand, debug, etc...

I have never made a deep thinking about the use of GOTO, but I think its use
is accepted in C since it doesn´t have a mechanism to do error handling like
exceptions in c++ or java.  I think in many situations, specially in
embedded systems, where execution time is critical you simply cannot made a
"decent" error treatment (in good programming  patrices sense). Sometimes,
assuming the risks arround break of natural code flow can give some benefits
in terms of performace. But this a great risk brave warrior.

On Wed, Mar 2, 2011 at 10:11 AM, Ashish Goel <ashg...@gmail.com> wrote:

> can it be done without use of a goto? remember that the user can use
> backspace to remove the previous entered string...eg...before pressing
> enter, the user enters abc<bs>def so the string is abdef
>
>
> How to decide how much buffer is optimum and would use of realloc be a good
> strategy?
>
> Also, i have a very basic question? Why GOTO is not recommended, i see it
> used like anything in linux kernel..not able to corelate security
> limitations in user mode vers kernel mode.
>
> Best Regards
> Ashish Goel
> "Think positive and find fuel in failure"
> +919985813081
> +919966006652
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Wesley Mesquita
Computer Engineer
http://www.wesleymesquita.com
Mobile: +55 11 95249272

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to