lua-users home
lua-l archive

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

On Tue, Feb 15, 2011 at 11:11 AM, Michal Kottman <> wrote:
> Or maybe dedicate an entire chapter to it in the Cookbook :) as I
> proposed in

Totally, this is important stuff. I suggest we follow Mike wherever he
goes and collect all his pieces of concrete advice.

But the wiki is good for initial collaboration.

I've done a template-ized version of Francesco's code, and it's full
of beauties like:

$(AL 's.y') = $(VL 'v_')

which expands to

s.y[0],s.y[1] = v_0,y_1

(The search for the ultimate syntax continues...)

Initially my Lua ears were tingling and then I realized - of course,
these C arrays are zero-based!

steve d.