Passing primitive types by reference is faster??

Indonesia
August 1, 2007 1:36pm CST
If we asume references are internally implemented as pointers, then passing by reference anything whose size is equal or less than a pointer's size(4 bytes) is actually slower that passing it by value? Is that correct? for example, passing a char by reference would imply passing a pointer by value which is four times the size of a char.
1 response
• Indonesia
1 Aug 07
yeaachh...there is no point in using reference on small types, unless of course, you need a reference