const arguments question



 DEVELOP > c-Plus-Plus > const arguments question

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "zs0723"
Date: 10 Jan 2008 08:03:23 PM
Object: const arguments question
"The importance of using const arguments increases with the size of a
program."
why using const arguments impact on the size of program?
.

User: "Andre Kostur"

Title: Re: const arguments question 11 Jan 2008 10:13:28 AM
zs0723 <zs0723@gmail.com> wrote in news:80ab064c-6cfa-47ba-ab95-
abeef1677abe@s12g2000prg.googlegroups.com:

"The importance of using const arguments increases with the size of a
program."

why using const arguments impact on the size of program?

What they're talking about is that as the size of the program increases,
presumably the complexity of the program also increases. By putting const
into your code, you are increasing the amount of documentation that is
directly in your code, and more clearly states certain assumptions about
things. This helps decrease the semantic complexity of the code. It
should make the code easier to understand for the next person reading it.
Easier to read code tends to lead to easier to maintain code.
.

User: "Victor Bazarov"

Title: Re: const arguments question 10 Jan 2008 08:09:36 PM
zs0723 wrote:

"The importance of using const arguments increases with the size of a
program."

why using const arguments impact on the size of program?

Perhaps you misunderstood the statement you quoted. The meaning
is "the larger the program, the more important it is that the
arguments are const[-correct]", or, to make it simpler, "in
a large program const plays bigger role for arguments".
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.
User: "zs0723"

Title: Re: const arguments question 10 Jan 2008 08:12:07 PM
On Jan 11, 10:09=A0am, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:

zs0723 wrote:

"The importance of using const arguments increases with the size of a
program."


why using const arguments impact on the size of program?


Perhaps you misunderstood the statement you quoted. =A0The meaning
is "the larger the program, the more important it is that the
arguments are const[-correct]", or, to make it simpler, "in
a large program const plays bigger role for arguments".

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

thanks , i am wrong
.



  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER