Click here to Skip to main content
15,890,995 members
Home / Discussions / C#
   

C#

 
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 
This has prompted me to go away and re-research some of my resoning here (always a good thing).

on this page[^] there is some very intersting discussion (including some from some C# gods) about immutable/mutable structs. Eric Lippert says:

"I would never, ever, EVER write a mutable vector or triangle as a struct. A vector is a VALUE. Values do not change. That is every bit as bizarre as writing a "mutable number". Does it make any sense to say, well, I've got the number 12, but I'm going to change this version of 12 to 15? No, of course not. When you add 3 to a number, you get a NEW NUMBER, you don't _modify_ the number 12 to be a different value.

When you change the vertex of a triangle, you have a _different_ triangle, so it should be a different value.
"

Dave

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

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 
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 
GeneralRe: I'm Baffled Again Pin
DaveyM694-Jan-10 7:43
professionalDaveyM694-Jan-10 7:43 
GeneralRe: I'm Baffled Again Pin
Roger Wright4-Jan-10 13:04
professionalRoger Wright4-Jan-10 13:04 
QuestionSystem.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save Pin
uglyeyes2-Jan-10 13:34
uglyeyes2-Jan-10 13:34 

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.