Raised This Month: $ Target: $400
 0% 

Code Style


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-16-2010 , 18:47   Re: Code Style
Reply With Quote #9

Quote:
Originally Posted by issen1 View Post
Sounds like bullshit to me. You can't have several return statements in a function call (actually you can, in assembler, but this doesn't matter here).
That's not what I said.
I said that you can have multiple return statements, but only 1 return value, because obviously the function stops when a value is returned.
To have more than one, you need separate blocks of code made by if(), while(), etc.

Quote:
Originally Posted by issen1 View Post
Any example? How will the flow of code be changed without the necessary jumps?
I'm not the expert on this, so no, no example.
I'm only repeating what I read and it was backed up with examples.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
 



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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode