in reply to Re: AND OR
in thread AND OR
Update: added parens for ->foo()int *x; if(ptr != NULL && *ptr==5){ ... } if( objPtr != NULL && objPtr->foo() ){ ... } # extended to perl: my $obj = Foo::Bar->new(); if( $obj && $obj->blah() ){ ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: AND OR (C meth)
by tye (Sage) on May 14, 2006 at 16:29 UTC |