Click here to Skip to main content
15,897,891 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is there a programming language... Pin
Rob Grainger17-Dec-13 22:31
Rob Grainger17-Dec-13 22:31 
GeneralRe: Is there a programming language... Pin
greydmar20-Dec-13 2:04
greydmar20-Dec-13 2:04 
GeneralRe: Is there a programming language... Pin
Rob Grainger20-Dec-13 3:38
Rob Grainger20-Dec-13 3:38 
GeneralRe: Is there a programming language... Pin
Gary Wheeler18-Dec-13 0:33
Gary Wheeler18-Dec-13 0:33 
GeneralRe: Is there a programming language... Pin
greydmar17-Dec-13 9:19
greydmar17-Dec-13 9:19 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 1:41
mvaMarc Clifton18-Dec-13 1:41 
GeneralRe: Is there a programming language... Pin
greydmar20-Dec-13 1:59
greydmar20-Dec-13 1:59 
GeneralRe: Is there a programming language... Pin
HaBiX17-Dec-13 20:47
HaBiX17-Dec-13 20:47 
"which completely loses the concept that 51 is an age (in years)."

so write
int ageInYears = 51;

There are many ways to do it in c# (pass the int value in constructor, make an implicit cast operator, ...), but imho the best way is sticking with plain int, as that what "age in years" exactly is.
GeneralRe: Is there a programming language... Pin
kalberts17-Dec-13 22:34
kalberts17-Dec-13 22:34 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 1:40
mvaMarc Clifton18-Dec-13 1:40 
GeneralRe: Is there a programming language... Pin
Rob Grainger17-Dec-13 22:48
Rob Grainger17-Dec-13 22:48 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 1:38
mvaMarc Clifton18-Dec-13 1:38 
GeneralRe: Is there a programming language... Pin
Rob Grainger18-Dec-13 4:28
Rob Grainger18-Dec-13 4:28 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 4:52
mvaMarc Clifton18-Dec-13 4:52 
GeneralRe: Is there a programming language... Pin
Rob Grainger18-Dec-13 7:00
Rob Grainger18-Dec-13 7:00 
GeneralRe: Is there a programming language... Pin
greydmar20-Dec-13 2:17
greydmar20-Dec-13 2:17 
GeneralRe: Is there a programming language... Pin
Eduard Matei18-Dec-13 0:53
Eduard Matei18-Dec-13 0:53 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 1:33
mvaMarc Clifton18-Dec-13 1:33 
GeneralRe: Is there a programming language... Pin
908236518-Dec-13 2:32
908236518-Dec-13 2:32 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 2:34
mvaMarc Clifton18-Dec-13 2:34 
GeneralRe: Is there a programming language... Pin
908236518-Dec-13 2:57
908236518-Dec-13 2:57 
GeneralRe: Is there a programming language... Pin
Rob Grainger18-Dec-13 4:20
Rob Grainger18-Dec-13 4:20 
GeneralRe: Is there a programming language... Pin
908236518-Dec-13 6:12
908236518-Dec-13 6:12 
GeneralRe: Is there a programming language... Pin
Anas Karm.18-Dec-13 4:23
Anas Karm.18-Dec-13 4:23 
GeneralRe: Is there a programming language... Pin
Marc Clifton18-Dec-13 4:26
mvaMarc Clifton18-Dec-13 4:26 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   310 votes