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

C#

 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 1:46
professionalRoger Wright4-Jan-10 1:46 
AnswerRe: I'm Baffled Again Pin
DaveyM692-Jan-10 23:56
professionalDaveyM692-Jan-10 23:56 
QuestionRe: I'm Baffled Again Pin
Abhinav S3-Jan-10 0:03
Abhinav S3-Jan-10 0:03 
AnswerRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:28
professionalDaveyM693-Jan-10 0:28 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:35
Rob Philpott3-Jan-10 0:35 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:51
professionalDaveyM693-Jan-10 0:51 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:09
mveOriginalGriff3-Jan-10 1:09 
GeneralRe: I'm Baffled Again Pin
Abhinav S3-Jan-10 1:13
Abhinav S3-Jan-10 1:13 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:23
mveOriginalGriff3-Jan-10 1:23 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:15
professionalDaveyM693-Jan-10 1:15 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:14
professionalDaveyM693-Jan-10 1:14 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 1:20
Rob Philpott3-Jan-10 1:20 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:25
mveOriginalGriff3-Jan-10 1:25 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 1:35
Rob Philpott3-Jan-10 1:35 
int x = 2;
x = 3;


There you are! x change from 2 to 3. And although one could argue that x is a value type and hence has been replaced, that fact is under the covers they'll be a register pointing to a bit of memory with x in it, and when x changes, that pointer won't, the content will. Your stack would get destroyed otherwise.

Regards,
Rob Philpott.

GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 1:48
mveOriginalGriff3-Jan-10 1:48 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 6:35
Rob Philpott3-Jan-10 6:35 
GeneralRe: I'm Baffled Again Pin
OriginalGriff3-Jan-10 7:18
mveOriginalGriff3-Jan-10 7:18 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 1:38
professionalDaveyM693-Jan-10 1:38 
JokeProblem Solved! Pin
DaveyM693-Jan-10 2:05
professionalDaveyM693-Jan-10 2:05 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:06
Rob Philpott3-Jan-10 0:06 
GeneralRe: I'm Baffled Again Pin
DaveyM693-Jan-10 0:18
professionalDaveyM693-Jan-10 0:18 
GeneralRe: I'm Baffled Again Pin
Rob Philpott3-Jan-10 0:33
Rob Philpott3-Jan-10 0:33 
GeneralRe: I'm Baffled Again Pin
Richard MacCutchan3-Jan-10 4:49
mveRichard MacCutchan3-Jan-10 4:49 
GeneralRe: I'm Baffled Again Pin
Roger Wright3-Jan-10 5:40
professionalRoger Wright3-Jan-10 5:40 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 2:15
professionalRoger Wright4-Jan-10 2:15 

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.