Deep question for the REAL C GURU's out there ...

Ben Duncan bns
Thu Feb 24 10:39:03 PST 2005



Roger Oberholtzer wrote:
> On Thu, 2005-02-24 at 15:58, Ben Duncan wrote:
> 
<SNIP>
> 
> update the value:	++(ptr->counter)
> 
> update the pointer:	(++ptr)->counter
> 
> get a new hobby:	++ptr->counter
> 

Ohh .. that one stings. But then again, precedence of the operators.

Between you and Kurt and the realization that those using SLAG are
going to be MORE Applications programmers, I am going to chose
CLARITY and lots of it, over laziness.


> It is another one of my quirks. I explicitly specify ordering. Never
> trust a compiler more than you need to.
> 
><SNIP>
> 

-- 
Ben Duncan   - VersAccounting Software LLC 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
        - Hanlon's Razor



More information about the Linux-users mailing list