On 2006-09-18 15:33-0700 David C Thompson wrote:

What if you named the construct something other than ELSEIF? For
instance:

 ONEOF( LABEL )
   CONDITION( cond_1 )
     statements here if cond_1 is true
   OR_CONDITION( cond_2 )
     statements here if cond_1 is false and cond_2 is true
   ... (more OR_CONDITION statements possible) ...
   OTHERWISE()
     statements here if cond_1 and cond_2 are false
 ENDONEOF( LABEL )
[...]

The problem is this new suggestion uses an entirely different syntax rather
than a simple elseif extension of if()... else ... endif.  I prefer the
elseif extension since most programmers will recognize the syntax at a
glance since similar elseif syntax appears in their language of choice (at
least for C, fortran, python, java, bash, tcl, etc.).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to