login
Header Space

 
 

Re: [Pull] Some documentation patches

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dmitri Vorobiev <dmitri.vorobiev@...>
Cc: Jonathan Corbet <corbet@...>, <linux-kernel@...>, <torvalds@...>, Randy Dunlap <randy.dunlap@...>
Date: Tuesday, April 1, 2008 - 4:00 pm

On Monday 2008-03-31 16:31, Dmitri Vorobiev wrote:

Why should it be less obvious? Exactly left to the (loff_t *) you
already have loff_t *, so you know where you are going from v,
whose type is also obviously visible right in the line above.
Casts can hide errors. The cast is redundant, it does not
cover up a compiler warning. Even so, casts can hide programming
errors, as in http://jengelh.hopto.org/2007/0616-nocast.php .


In case of *a++ I would agree -- you would need to know whether * or
++ has the higher precedence (hint: ++ has). But in ++*a it does not
matter how much precedence either has, it always means the same.
Just like an arithmetic expression "x*-5".
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Pull] Some documentation patches, Jonathan Corbet, (Fri Mar 28, 2:20 pm)
Re: [Pull] Some documentation patches, Randy Dunlap, (Fri Mar 28, 3:47 pm)
Re: [Pull] Some documentation patches, Will Newton, (Fri Mar 28, 3:39 pm)
Re: [Pull] Some documentation patches, Jan Engelhardt, (Fri Mar 28, 3:09 pm)
Re: [Pull] Some documentation patches, Dmitri Vorobiev, (Mon Mar 31, 10:31 am)
Re: [Pull] Some documentation patches, Jan Engelhardt, (Tue Apr 1, 4:00 pm)
Re: [Pull] Some documentation patches , Jonathan Corbet, (Fri Mar 28, 3:22 pm)
Re: [Pull] Some documentation patches, Linus Torvalds, (Fri Mar 28, 2:34 pm)
Re: [Pull] Some documentation patches , Jonathan Corbet, (Fri Mar 28, 2:36 pm)
Re: [Pull] Some documentation patches, Jan Engelhardt, (Fri Mar 28, 2:28 pm)
speck-geostationary