|
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 otherinteresting variants like a string switch that takes patterns for the cases.Mark