C vs C++ vs Lisp (156)

86 Name: #!/usr/bin/anonymous : 2008-08-11 21:06 ID:Heaven

>>85

C++ programmers typically pass pointers to objects, and do not normally copy the object itself. However, they do have the option of pointer, copy, and reference access:

void foo_pointer   (Object *x);
void foo_copy (Object x);
void foo_reference (Object &x);

They don't usually refer to these things as "call by value" or "call by reference" - those terms are uncommon amongst C++ programmers, but common amongst Visual Basic programmers where there are no pointers.

This thread has been closed. You cannot post in this thread any longer.