FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 2 matches
Forum Index
Author Message
  Topic: Reference and Pointer
sofmz

Replies: 9
Views: 19574

PostForum: General   Posted: Mon Jul 12, 2004 8:00 pm   Subject: Re: Reference and Pointer
If that is what he meant, then, yes, I agree with you. Changing the value of a member variable in c1 or c2 amounts to changing the same value within the new computer object (since they both reference ...
  Topic: Reference and Pointer
sofmz

Replies: 9
Views: 19574

PostForum: General   Posted: Thu Jul 08, 2004 8:46 pm   Subject: Reference and Pointer
I'm absolute new to D programming. The following is the code i have written for testing purpose.

int main ()
{
Computer c1 = new Computer();
Computer c2 = c1;
Computer* c3 = &c1;

...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group