Re: Re-use the argument?
- From: Richard<rgrdev@xxxxxxxxx>
- Date: Sun, 08 Jun 2008 13:16:53 +0200
"Malcolm McLean" <regniztar@xxxxxxxxxxxxxx> writes:
"Tomás Ó hÉilidhe" <toe@xxxxxxxxxxx> wrote in message news:
Generally it is considered bad form to modify an argument to a
Which of these functions would you go with?
unsigned Func(unsigned const x)
{
return 3*x - 2;
}
or:
unsigned Func(unsigned x)
{
x *= 3;
x -= 2;
return x;
}
function. It makes things a bit more difficult to read.
What a load of nonsense. If its not a const its no more than a local variable.
.
- Follow-Ups:
- Re: Re-use the argument?
- From: Malcolm McLean
- Re: Re-use the argument?
- References:
- Re-use the argument?
- From: Tomás Ó hÉilidhe
- Re: Re-use the argument?
- From: Malcolm McLean
- Re-use the argument?
- Prev by Date: Re: oscillator
- Next by Date: Re: printig effort
- Previous by thread: Re: Re-use the argument?
- Next by thread: Re: Re-use the argument?
- Index(es):
Relevant Pages
|