Click here to Skip to main content
15,920,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where's the namespace "System.Management" Pin
leppie19-Jun-02 21:02
leppie19-Jun-02 21:02 
GeneralRe: Where's the namespace "System.Management" Pin
Feng Qin19-Jun-02 22:54
Feng Qin19-Jun-02 22:54 
GeneralInstance Handle for Bitmap.FromResource Pin
Jamie Nordmeyer19-Jun-02 13:00
Jamie Nordmeyer19-Jun-02 13:00 
GeneralRe: Instance Handle for Bitmap.FromResource Pin
Nish Nishant19-Jun-02 13:10
sitebuilderNish Nishant19-Jun-02 13:10 
GeneralRe: Instance Handle for Bitmap.FromResource Pin
James T. Johnson19-Jun-02 13:47
James T. Johnson19-Jun-02 13:47 
GeneralRe: Instance Handle for Bitmap.FromResource Pin
John Mautari19-Jun-02 19:06
John Mautari19-Jun-02 19:06 
Questionudpclient bug ? Pin
Gary31419-Jun-02 12:14
Gary31419-Jun-02 12:14 
Generalvalue vs. reference gripe Pin
Marc Clifton19-Jun-02 9:59
mvaMarc Clifton19-Jun-02 9:59 
Why do language designers tout how you don't have to think about passing by value vs. reference anymore in languages like C# and Java, when in reality, you reall DO have to think about it all the time!!! In fact, I find it more confusing, because these languages hide the issue of value/reference, and I find myself constantly worrying about references going out of scope. Is this just me, being a die hard C++ programmer, or what?

Especially confusing is that native types (even though they say they're objects!) are passed by value, whereas objects are passed by reference.

So:

int i=5;
foobar(i);

string s="abc";
fizbin(s);

foobar passes by value and fizbin passes by reference. I have to explicitly say:

foobar(ref i) !!!

What is with this? This seems ridiculously confusing. On one hand they say both things are objects, then they treat them differently.

Enlighten the grouch. Am I missing something really spectacular about these languages?

Marc
GeneralRe: value vs. reference gripe Pin
Chris Rickard19-Jun-02 10:23
Chris Rickard19-Jun-02 10:23 
GeneralRe: value vs. reference gripe Pin
leppie19-Jun-02 11:29
leppie19-Jun-02 11:29 
GeneralRe: value vs. reference gripe Pin
Nish Nishant19-Jun-02 11:55
sitebuilderNish Nishant19-Jun-02 11:55 
GeneralRe: value vs. reference gripe Pin
leppie19-Jun-02 23:18
leppie19-Jun-02 23:18 
GeneralRe: value vs. reference gripe Pin
Richard Deeming20-Jun-02 0:19
mveRichard Deeming20-Jun-02 0:19 
GeneralRe: value vs. reference gripe Pin
Marc Clifton20-Jun-02 1:37
mvaMarc Clifton20-Jun-02 1:37 
GeneralRe: value vs. reference gripe Pin
Richard Deeming20-Jun-02 3:39
mveRichard Deeming20-Jun-02 3:39 
GeneralRe: value vs. reference gripe Pin
Marc Clifton20-Jun-02 7:09
mvaMarc Clifton20-Jun-02 7:09 
QuestionC# bool to int conversion. Does it exist? Pin
Marc Clifton19-Jun-02 9:55
mvaMarc Clifton19-Jun-02 9:55 
AnswerRe: C# bool to int conversion. Does it exist? Pin
Chris Rickard19-Jun-02 10:06
Chris Rickard19-Jun-02 10:06 
GeneralRe: C# bool to int conversion. Does it exist? Pin
Marc Clifton19-Jun-02 10:17
mvaMarc Clifton19-Jun-02 10:17 
GeneralClear the Console Pin
Mauricio Ritter19-Jun-02 6:41
Mauricio Ritter19-Jun-02 6:41 
GeneralRe: Clear the Console Pin
Nick Parker21-Jun-02 8:08
protectorNick Parker21-Jun-02 8:08 
Generalfinding the process's HWND Pin
eynats19-Jun-02 2:33
eynats19-Jun-02 2:33 
GeneralRe: finding the process's HWND Pin
Feng Qin19-Jun-02 3:01
Feng Qin19-Jun-02 3:01 
GeneralRe: finding the process's HWND Pin
eynats19-Jun-02 3:34
eynats19-Jun-02 3:34 
GeneralRe: finding the process's HWND Pin
Mazdak19-Jun-02 5:50
Mazdak19-Jun-02 5:50 

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.