Click here to Skip to main content
14,972,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
MemberRob Grainger17-Dec-13 22:31 
GeneralRe: Is there a programming language... Pin
greydmar20-Dec-13 2:04
Membergreydmar20-Dec-13 2:04 
GeneralRe: Is there a programming language... Pin
Rob Grainger20-Dec-13 3:38
MemberRob Grainger20-Dec-13 3:38 
GeneralRe: Is there a programming language... Pin
Gary Wheeler18-Dec-13 0:33
MemberGary Wheeler18-Dec-13 0:33 
GeneralRe: Is there a programming language... Pin
greydmar17-Dec-13 9:19
Membergreydmar17-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
Membergreydmar20-Dec-13 1:59 
GeneralRe: Is there a programming language... Pin
HaBiX17-Dec-13 20:47
MemberHaBiX17-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
Member 798912217-Dec-13 22:34
MemberMember 798912217-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
MemberRob 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
MemberRob 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
MemberRob Grainger18-Dec-13 7:00 
GeneralRe: Is there a programming language... Pin
greydmar20-Dec-13 2:17
Membergreydmar20-Dec-13 2:17 
GeneralRe: Is there a programming language... Pin
Eduard Matei18-Dec-13 0:53
MemberEduard 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
Member908236518-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
Member908236518-Dec-13 2:57 
GeneralRe: Is there a programming language... Pin
Rob Grainger18-Dec-13 4:20
MemberRob Grainger18-Dec-13 4:20 
GeneralRe: Is there a programming language... Pin
908236518-Dec-13 6:12
Member908236518-Dec-13 6:12 
GeneralRe: Is there a programming language... Pin
Anas Karm.18-Dec-13 4:23
MemberAnas 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.