Re: Is it worth it to return a resource by reference?
- From: Ney André de Mello Zunino <zunino@xxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 16:17:21 -0300
Jerry Stuckle wrote:
Passing by reference should never increase the amount of overhead (at least not by any measurable amount), even for an integer. And for more complex objects it will decrease the overhead.
Thanks for your reply. Given that the use of references can never hurt and that this is my first time using them, could you tell me if I am doing it right (according to the sample code in my original post)?
Thank you,
--
Ney André de Mello Zunino
.
- Follow-Ups:
- Re: Is it worth it to return a resource by reference?
- From: Jerry Stuckle
- Re: Is it worth it to return a resource by reference?
- References:
- Is it worth it to return a resource by reference?
- From: Ney André de Mello Zunino
- Re: Is it worth it to return a resource by reference?
- From: Jerry Stuckle
- Is it worth it to return a resource by reference?
- Prev by Date: Re: need code snippet to verify input strings
- Next by Date: Re: How to check for multiple @'s
- Previous by thread: Re: Is it worth it to return a resource by reference?
- Next by thread: Re: Is it worth it to return a resource by reference?
- Index(es):