Connecting Tech Pros Worldwide Help | Site Map

Re: No return in LONG InterlockedDecrement ( LONG *lpAddend )

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 27th, 2008, 07:45 PM
Harald van =?UTF-8?b?RMSzaw==?=
Guest
 
Posts: n/a
Default Re: No return in LONG InterlockedDecrement ( LONG *lpAddend )

On Thu, 28 Aug 2008 07:09:32 +1200, Ian Collins wrote:
Quote:
Willem wrote:
Quote:
>Ian Collins wrote:
[ non-void functions exiting by reaching the } ]
Quote:
Quote:
>) Which really should be a constraint violation.
>>
>constraint violations are usually restricted to things that can be
>easily checked by a compiler. Ensuring that a non-void function always
>returns a value requires code path analysis at the very least.
>>
Ensuring a non-void function has at least one return statement isn't
hard.
And what if a non-void function intentionally has no return statement,
because it's not supposed to ever return? For example, int main(void)
which starts up an otherwise infinite loop containing a conditional call
to exit()?

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.