Clipper Programming Question:
Why use references rather than pointers in the public API, particularly for arguments which are modified?
Answer:
The C++ provides the most precise statement of the priciples:
No pointers in the public API, except when returning a pointer which might be null. The above reference also describes the problem of wrong attitudes brought over from C.
No pointers in the public API, except when returning a pointer which might be null. The above reference also describes the problem of wrong attitudes brought over from C.
Previous Question | Next Question |
Why C++ used in Clipper? | Can I use Fortran/C/Python/Visual Basic? |