Multi-programming-language "cookbook", control/paradigms (Chapter 4)

Table of contents: (Link back to main file with table of contents)

 

 

 


Flow of control, decisions, loops

Ordinary blocks of statements that don't return values were already discussed earlier, and if-then statements and expressions, loops, were all discussed earlier. Here I'll just include one more item not mentionned before:

Execute a sequence of statements/expressions in sequence, passing the value of the last expression up to be the value of the overall expression:

Stub: more complete discussion of if/then/else and COND (lisp only)

Stub: more complete discussion of PROG and its component parts

Stub: case/switch/select statements

Stub: using ASSOC to emulate case/switch/select statement (lisp only)

Stub: new LOOP macro (Common Lisp only)

 

 

 


how to contact me

Copyright 2007 by Robert Elton Maas, all rights reserved