Am 21.10.2014 um 14:47 schrieb monarch_dodra:
On Tuesday, 21 October 2014 at 12:22:54 UTC, edn wrote:
Could someone provide me with examples showing the usefulness of
pointers in the D language? They don't seem to be used as much as in C
and C++.

The only difference between C/C++ and D is that C uses pointers for both
"pointer to object" and "pointer to array", whereas D has a "slice" object.

C++ introduced "pass-by-ref" (also exists in D), which has tended to
reduce the (visible) use.


Actually it goes back to Algol and all languages in the Pascal family support it.

--
Paulo

Reply via email to