Author |
Message |
Topic: Reference and Pointer |
sofmz
Replies: 9
Views: 19574
|
Forum: 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
|
Forum: 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;
... |
|