Click here to Skip to main content
15,794,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: some questions about "reference to pointer" [modified] Pin
«_Superman_»18-Sep-09 5:08
professional«_Superman_»18-Sep-09 5:08 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 5:17
mveCPallini18-Sep-09 5:17 
GeneralRe: some questions about "reference to pointer" Pin
«_Superman_»18-Sep-09 5:19
professional«_Superman_»18-Sep-09 5:19 
GeneralRe: some questions about "reference to pointer" Pin
lhyblue18-Sep-09 5:44
lhyblue18-Sep-09 5:44 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 5:48
professionalStuart Dootson18-Sep-09 5:48 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 12:14
mveCPallini18-Sep-09 12:14 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 13:40
professionalStuart Dootson18-Sep-09 13:40 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 14:15
mveCPallini18-Sep-09 14: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 14:28
professionalStuart Dootson18-Sep-09 14:28 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 1:26
mveCPallini19-Sep-09 1:26 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 8:25
professionalStuart Dootson19-Sep-09 8:25 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 23:06
mveCPallini19-Sep-09 23:06 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 23:15
professionalStuart Dootson19-Sep-09 23:15 
QuestionDISP_E_UNKNOWNNAME Pin
Mohanraj D18-Sep-09 4:20
Mohanraj D18-Sep-09 4:20 
AnswerRe: DISP_E_UNKNOWNNAME Pin
Stuart Dootson18-Sep-09 4:25
professionalStuart Dootson18-Sep-09 4:25 
AnswerRe: DISP_E_UNKNOWNNAME Pin
CPallini18-Sep-09 4:30
mveCPallini18-Sep-09 4:30 
QuestionHow to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 3:37
themilan18-Sep-09 3:37 
AnswerRe: How to use ShellStyle.dll in MFC Application Pin
enhzflep18-Sep-09 6:19
enhzflep18-Sep-09 6:19 
QuestionRe: How to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 21:43
themilan18-Sep-09 21:43 
QuestionAdding 2 double datat types Pin
dipuks18-Sep-09 3:35
dipuks18-Sep-09 3:35 
AnswerRe: Adding 2 double datat types [modified] Pin
Code-o-mat18-Sep-09 3:39
Code-o-mat18-Sep-09 3:39 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 4:10
dipuks18-Sep-09 4:10 
GeneralRe: Adding 2 double datat types Pin
Code-o-mat18-Sep-09 4:19
Code-o-mat18-Sep-09 4:19 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 7:11
dipuks18-Sep-09 7:11 
QuestionRe: Adding 2 double datat types Pin
David Crow18-Sep-09 7:55
David Crow18-Sep-09 7: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.