Re: Jump to label

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Plus applications often use try/catch/finally to be 'more' object oriented.

Egi.

"Doron Holan [MSFT]" <doronh@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:u0Ji6uJvIHA.3780@xxxxxxxxxxxxxxxxxxxxxxx
it is all a matter of style. typically you see one of three options
1) alot of nested if()s which check for success
2) a flat strucure of if()s, on failure goto error;
3) a do { } while (FALSE) loop. on error, you see a break; this is the
same as #2

it really just dpeends on what you want to maintain...

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Kid" <Kid@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:771ACB4A-2D5C-4699-AEB4-EF91CB6DABEB@xxxxxxxxxxxxxxxx
Hi

I've seen many driver source use goto error label in functions .

Is it a good way to write driver functions ? I seldom found goto label
in
application
project source .

Thank you.



.



Relevant Pages

  • Re: Jump to label
    ... I've seen many driver source use goto error label in functions. ... Is it a good way to write driver functions? ...
    (microsoft.public.development.device.drivers)
  • Re: Jump to label
    ... Please do not send e-mail directly to this alias. ... I've seen many driver source use goto error label in functions. ... Is it a good way to write driver functions? ...
    (microsoft.public.development.device.drivers)