if(p)
Thomas M. Breuel
tmb at talcott.UUCP
Wed Sep 25 03:30:21 AEST 1985
In article <1671 at brl-tgr.ARPA>, ART at ACC.ARPA (Art Berggreen) writes:
> From an abstract language viewpoint, an "if" statement conditionally
> executes a block of statements based on whether the control statement
> evaluates to a condition of *TRUE*. Pointers by themself do not
> have attributes of TRUE vs FALSE. Thus, "if(pointer)" makes less semantic
Where do you take that bit of wisdom from? Obviously, 'C' works differently,
from an abstract and practical point of view. If you like abstractions,
why don't you consider 'if' a message that is sent to the object following
it in parentheses and that then decides to execute the statement
following it :-).
Thomas.
More information about the Comp.lang.c
mailing list