lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 13 Jan 2010, David Given wrote:
>
> Or for machine-generated code, or for state machines, or for cleanup
> handlers, or as a last-ditch-all-else-fails hack...
>
> [Disclaimer: I am an unashamed goto apologist.]

Tail calls are good for state machines.
ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-443.pdf

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.