Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> writes:
In C++, you can't pass arrays as parameters at all - the language inherited C's handling of arrays. You can, of course, pass objects of std::array<> type by value or by reference, just like any other class types.>I can't unravel this. Take, as a concrete example, C++. You can't pass
In general there is no reason, in a language with true call-by-reference,
why any parameter type T (which has the form U*, a pointer to anything),
cannot be passed by reference. It doesn't matter whether U is an array type
or not.
a pointer to function that takes an array passed by reference. You can,
of course, pass a pointer by reference, but that is neither here nor
there.
Les messages affichés proviennent d'usenet.