httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <...@sunstarsys.com>
Subject Re: [apreq-2] conditionals
Date Sat, 19 Apr 2003 21:56:40 GMT
Randy Kobes <randy@theoryx5.uwinnipeg.ca> writes:

[...]

> -    (parent >= 0) ? parent[o].tree[LR(pivot)] : *root = child;
> +    (parent >= 0) ? parent[o].tree[LR(pivot)] : (*root = child);

Those aren't equivalent.  The first one uses ?: to select the 
lvalue - IOW it's doing this

  ( parent >= 0 ? parent[o].tree[LR(pivot)] : *root ) = child;


or at least it should be, since that's what I want to have 
happen here.

-- 
Joe Schaefer

Mime
View raw message