Choosing function parameter types - pointers or objects?
- From: "ballpointpenthief" <Matt.Smiglarski@xxxxxxxxx>
- Date: 30 Jun 2006 11:30:03 -0700
At the moment, I only write functions which accept pointers as
arguments in order to change a value, but I've realised it would often
be a lot more effiecient to pass a pointer rather than an actual
object.
I know this question is a bit vague, but I was wondering about any
rules / guidelines / style issues, for when to use pointers, and when
not to, in your function parameters?
I'm also interested in any grey areas, or even off-topic functions that
have been written like in the win32 API for instance, but I doubt
anyone else is.
Cheers, Matt
.
- Follow-Ups:
- Re: Choosing function parameter types - pointers or objects?
- From: Frederick Gotham
- Re: Choosing function parameter types - pointers or objects?
- From: Richard Heathfield
- Re: Choosing function parameter types - pointers or objects?
- Prev by Date: Re: redefine a function with a same name
- Next by Date: Re: So what Standard are we working off?
- Previous by thread: Application Reading Itself
- Next by thread: Re: Choosing function parameter types - pointers or objects?
- Index(es):
Relevant Pages
|