Discussion: Opinions about a book
Afficher un message
Vieux 05/05/2008, 18h00   #23
arnuld
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Opinions about a book

> On Mon, 05 May 2008 04:21:49 +0000, Richard Heathfield wrote:

> Why should everyone be interested in C99? What's so interesting about it?



I think it is a good idea to have this:

for( int i = 0; i != N; ++i)


rather than this:

int i;

for( i = 0;, i != N; ++i )


that way, i is localized. It is a very good idea if i exists primarily for
for loop. It will not pollute the the other namespaces.


Also, IIRC, const in C99, makes a compile time constant. That's good
thing too. At least, I don't have to use enum for array size :P





--
http://lispmachine.wordpress.com/
my email ID is @ the above address

  Réponse avec citation
 
Page generated in 0,04852 seconds with 9 queries