more on TRUE and FALSE (sorry) with JOKES

Tim McDaniel mcdaniel at adi.com
Tue Sep 18 05:06:10 AEST 1990


In article <9 at christmas.UUCP> rtm at christmas.UUCP (Richard Minner)
writes:

   More to the point, it's good
   practice to give boolean variables and functions `predicate' names,
   e.g. use `is_init' instead of just `init', and is_valid(thing)
   instead of check(thing).

Excellent.  A warning to the unStandardified: external names beginning
with "is" or "to", followed by a lowercase letter, followed by
any identifier characters, is reserved in the Standard if you include
<ctype.h>.  'is_init' or 'isInit' is portable; 'isinit' is not.
--
Tim McDaniel                 Applied Dynamics Int'l.; Ann Arbor, Michigan, USA
Work phone: +313 973 1300                            Home phone: +313 677 4386
Internet: mcdaniel at adi.com                UUCP: {uunet,sharkey}!amara!mcdaniel



More information about the Comp.lang.c mailing list