Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to configure msdn in my vs2005 correctly ? Pin
Thomas Stockwell13-Jan-07 16:30
professionalThomas Stockwell13-Jan-07 16:30 
QuestionPrimitive types or object types what to prefer Pin
ComCoderCsharp13-Jan-07 7:21
ComCoderCsharp13-Jan-07 7:21 
AnswerRe: Primitive types or object types what to prefer Pin
Stefan Troschuetz13-Jan-07 8:30
Stefan Troschuetz13-Jan-07 8:30 
AnswerRe: Primitive types or object types what to prefer Pin
Luc Pattyn13-Jan-07 8:50
sitebuilderLuc Pattyn13-Jan-07 8:50 
GeneralRe: Primitive types or object types what to prefer Pin
ComCoderCsharp13-Jan-07 10:51
ComCoderCsharp13-Jan-07 10:51 
GeneralRe: Primitive types or object types what to prefer Pin
Kevin McFarlane13-Jan-07 11:26
Kevin McFarlane13-Jan-07 11:26 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 3:38
professionalScott Dorman14-Jan-07 3:38 
GeneralRe: Primitive types or object types what to prefer Pin
Luc Pattyn14-Jan-07 3:55
sitebuilderLuc Pattyn14-Jan-07 3:55 
Sure, for ease of use I would implement ComplexNumber as a class or struct, with operators
overloaded.

For performance reasons I would rather not use classes (too many objects), and not
return structs (too many data moves; for 8B of data it is debatable, for large structs
I certainly dont want them returned), hence ref struct, hence no operator overloads.

And of course for max performance, no ComplexNumbers at all.

Smile | :)

Luc Pattyn

GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 4:15
professionalScott Dorman14-Jan-07 4:15 
GeneralRe: Primitive types or object types what to prefer Pin
ComCoderCsharp14-Jan-07 4:54
ComCoderCsharp14-Jan-07 4:54 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 5:18
professionalScott Dorman14-Jan-07 5:18 
GeneralRe: Primitive types or object types what to prefer Pin
ComCoderCsharp14-Jan-07 5:41
ComCoderCsharp14-Jan-07 5:41 
GeneralRe: Primitive types or object types what to prefer Pin
Scott Dorman14-Jan-07 5:47
professionalScott Dorman14-Jan-07 5:47 
AnswerRe: Primitive types or object types what to prefer Pin
Luc Pattyn14-Jan-07 12:14
sitebuilderLuc Pattyn14-Jan-07 12:14 
QuestionC# or C++ and why ? Pin
Software_Specialist13-Jan-07 5:54
Software_Specialist13-Jan-07 5:54 
AnswerRe: C# or C++ and why ? Pin
Ed.Poore13-Jan-07 7:56
Ed.Poore13-Jan-07 7:56 
AnswerRe: C# or C++ and why ? Pin
Colin Angus Mackay13-Jan-07 9:20
Colin Angus Mackay13-Jan-07 9:20 
GeneralRe: C# or C++ and why ? Pin
Software_Specialist13-Jan-07 22:43
Software_Specialist13-Jan-07 22:43 
GeneralRe: C# or C++ and why ? Pin
Nadia Monalisa13-Jan-07 23:45
Nadia Monalisa13-Jan-07 23:45 
GeneralRe: C# or C++ and why ? Pin
Colin Angus Mackay14-Jan-07 3:26
Colin Angus Mackay14-Jan-07 3:26 
QuestionA user-interface question Pin
Zerox MXI13-Jan-07 1:59
Zerox MXI13-Jan-07 1:59 
AnswerRe: A user-interface question Pin
Thomas Stockwell13-Jan-07 5:23
professionalThomas Stockwell13-Jan-07 5:23 
QuestionSomething like chat Pin
CodeItWell13-Jan-07 0:21
CodeItWell13-Jan-07 0:21 
AnswerRe: Something like chat Pin
Thomas Stockwell13-Jan-07 5:24
professionalThomas Stockwell13-Jan-07 5:24 
QuestionQuestion in C# about Interfaces...... Pin
Yanshof13-Jan-07 0:16
Yanshof13-Jan-07 0:16 

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.