On Friday 01 February 2008 15:41:34 Andy Lester wrote:

> > Any reason not to write:
> >
> >     PMC *result = PMC_IS_NULL(lex_pad) ? NULL : VTABLE...;

> No reason in my book, but I got a general anti-ternary vibe in the
> past from the p2 crew.

Anything that gets us an extra const *and* limits the number of lines of code 
where a pointer can be uninitialized *and* is as simple as this ternary 
conditional gets my +1 Gold Star Super Duper Review Signoff.

I think that's the name of a Japanese game show, by the way.

-- c

Reply via email to