Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 5:51
sitebuilderLuc Pattyn19-May-10 5:51 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Hankyaku19-May-10 5:59
Hankyaku19-May-10 5:59 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 6:02
sitebuilderLuc Pattyn19-May-10 6:02 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Hankyaku19-May-10 6:10
Hankyaku19-May-10 6:10 
GeneralRe: Showing a continuously refreshed form during calculations [modified] Pin
Luc Pattyn19-May-10 5:57
sitebuilderLuc Pattyn19-May-10 5:57 
GeneralRe: Showing a continuously refreshed form during calculations [modified] Pin
PIEBALDconsult19-May-10 6:06
mvePIEBALDconsult19-May-10 6:06 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 6:15
sitebuilderLuc Pattyn19-May-10 6:15 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 6:51
mvePIEBALDconsult19-May-10 6:51 
Luc Pattyn wrote:
similar to breaks in switch cases


Mad | :mad: switches shouldn't use break at all. Stopping (not falling through) should be the normal flow without using a break statement.


Luc Pattyn wrote:
you mean parentheses?


Yes... Sigh | :sigh:

A while (years) back, the subject came up and I found that Dennis Ritchie had put some of his old (circa 1974) C compiler code online and I looked through it and found that they appeared to be required, and his 1974 document says:

"
9.10 Return statement
A function returns to its caller by means of the return statement, which has one of the forms
return ;
return ( expression ) ;
In the first case no value is returned. In the second case, the value of the expression is returned to the caller of the
function. If required, the expression is converted, as if by assignment, to the type of the function in which it appears.
Flowing off the end of a function is equivalent to a return with no returned value.
"

That got relaxed some time later, but the habit got passed on to me in the '80s.
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 7:00
sitebuilderLuc Pattyn19-May-10 7:00 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 7:21
mvePIEBALDconsult19-May-10 7:21 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 8:07
sitebuilderLuc Pattyn19-May-10 8:07 
GeneralRe: Showing a continuously refreshed form during calculations Pin
harold aptroot19-May-10 8:15
harold aptroot19-May-10 8:15 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 8:17
sitebuilderLuc Pattyn19-May-10 8:17 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 8:59
mvePIEBALDconsult19-May-10 8:59 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 6:23
mvePIEBALDconsult19-May-10 6:23 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Hankyaku19-May-10 7:12
Hankyaku19-May-10 7:12 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 9:43
sitebuilderLuc Pattyn19-May-10 9:43 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 9:30
mvePIEBALDconsult19-May-10 9:30 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 9:52
sitebuilderLuc Pattyn19-May-10 9:52 
GeneralRe: Showing a continuously refreshed form during calculations Pin
PIEBALDconsult19-May-10 10:34
mvePIEBALDconsult19-May-10 10:34 
GeneralRe: Showing a continuously refreshed form during calculations Pin
Luc Pattyn19-May-10 11:15
sitebuilderLuc Pattyn19-May-10 11:15 
AnswerRe: Showing a continuously refreshed form during calculations Pin
#realJSOP19-May-10 9:21
professional#realJSOP19-May-10 9:21 
QuestionWhat do I require to create a program that controls a device driver? Pin
Ian Durward19-May-10 2:47
Ian Durward19-May-10 2:47 
AnswerRe: What do I require to create a program that controls a device driver? Pin
Henry Minute19-May-10 3:31
Henry Minute19-May-10 3:31 
AnswerRe: What do I require to create a program that controls a device driver? Pin
Luc Pattyn19-May-10 3:51
sitebuilderLuc Pattyn19-May-10 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.