"Macca" <as****@dial.pipex.com> wrote in message
news:41***********************@news.dial.pipex.com ...
Hi,
I am looking to pass a Structure to a function. I was wondering what the
most efficent way of doing this was, by pointer or by reference?
Thanks In Advance
Macca
They are likely to be equally efficient.
It's a bogus question to ask in any case because you should be concentrating
on the meaning of your code, not micro-efficiency. Which is more meaningful
to use, a pointer or a reference? For instance if you want sometimes to pass
NULL then you should use a pointer since you cannot have a NULL reference.
But in general I would say a reference is the more meaningful choice.
john