Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: some questions about "reference to pointer" [modified] Pin
«_Superman_»18-Sep-09 4:08
professional«_Superman_»18-Sep-09 4:08 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 4:17
mveCPallini18-Sep-09 4:17 
GeneralRe: some questions about "reference to pointer" Pin
«_Superman_»18-Sep-09 4:19
professional«_Superman_»18-Sep-09 4:19 
GeneralRe: some questions about "reference to pointer" Pin
lhyblue18-Sep-09 4:44
lhyblue18-Sep-09 4:44 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 4:48
professionalStuart Dootson18-Sep-09 4:48 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 11:14
mveCPallini18-Sep-09 11:14 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 12:40
professionalStuart Dootson18-Sep-09 12:40 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 13:15
mveCPallini18-Sep-09 13:15 
Stuart Dootson wrote:
if that's the case, then C# always passes ref types by reference

Nope, C# (like Java) pass all objects as references, (the reference to the object is passed by value). On the other hand, C++ makes a copy of an object passed by value.


Stuart Dootson wrote:
what's the difference between ref and non-ref.

void foo(Goo goo)

can change the state of the object referenced by goo (similar to C++ reference or pointer to the object).

void fooWithSuperpowers(ref Goo goo)

can change goo itself, i.e. goo may be a reference to another object after function call (similar to a double indirection in C++).


Stuart Dootson wrote:
Can we just agree that C# is fundamentally wrong and be done with it

Stuart Dootson wrote:
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p


Java, C#, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

FFY Poke tongue | ;-P

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 13:28
professionalStuart Dootson18-Sep-09 13:28 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 0:26
mveCPallini19-Sep-09 0:26 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 7:25
professionalStuart Dootson19-Sep-09 7:25 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 22:06
mveCPallini19-Sep-09 22:06 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 22:15
professionalStuart Dootson19-Sep-09 22:15 
QuestionDISP_E_UNKNOWNNAME Pin
Mohanraj D18-Sep-09 3:20
Mohanraj D18-Sep-09 3:20 
AnswerRe: DISP_E_UNKNOWNNAME Pin
Stuart Dootson18-Sep-09 3:25
professionalStuart Dootson18-Sep-09 3:25 
AnswerRe: DISP_E_UNKNOWNNAME Pin
CPallini18-Sep-09 3:30
mveCPallini18-Sep-09 3:30 
QuestionHow to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 2:37
themilan18-Sep-09 2:37 
AnswerRe: How to use ShellStyle.dll in MFC Application Pin
enhzflep18-Sep-09 5:19
enhzflep18-Sep-09 5:19 
QuestionRe: How to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 20:43
themilan18-Sep-09 20:43 
QuestionAdding 2 double datat types Pin
dipuks18-Sep-09 2:35
dipuks18-Sep-09 2:35 
AnswerRe: Adding 2 double datat types [modified] Pin
Code-o-mat18-Sep-09 2:39
Code-o-mat18-Sep-09 2:39 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 3:10
dipuks18-Sep-09 3:10 
GeneralRe: Adding 2 double datat types Pin
Code-o-mat18-Sep-09 3:19
Code-o-mat18-Sep-09 3:19 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 6:11
dipuks18-Sep-09 6:11 
QuestionRe: Adding 2 double datat types Pin
David Crow18-Sep-09 6:55
David Crow18-Sep-09 6:55 

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.