[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Select (Switch) Case statement
- From: Rici Lake <lua@...>
- Date: Wed, 1 Sep 2004 12:43:29 -0500
Take a look at blex.lua in the LuaParse distro for a fully-worked
example of pattern-based case-switching (function table style).
R.
On 1-Sep-04, at 12:36 PM, Mark Hamburg wrote:
The switch returns case and default tests approach also suggests other
interesting variants like a string switch that takes patterns for the
cases.
Mark