Re: Jump to label
- From: "Egidio [MSFT]" <egidio@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 May 2008 09:03:14 -0700
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.
.
- Follow-Ups:
- Re: Jump to label
- From: Doron Holan [MSFT]
- Re: Jump to label
- References:
- Re: Jump to label
- From: Doron Holan [MSFT]
- Re: Jump to label
- Prev by Date: Re: Jump to label
- Next by Date: Re: How to block system copy commands at driver level
- Previous by thread: Re: Jump to label
- Next by thread: Re: Jump to label
- Index(es):
Relevant Pages
|