|
It’s totally safe and there’s a similar example in Programming in Lua. Section 3.6 in the 2nd edition (I don’t have the latest edition yet): polyline = { color=”blue”, thickness=2, npoints=4, {x=0, y=0}, {x=-10, y=0} {x=-10, y=1} {x=0, y=1} } Produces less garbage because there’s no intermediate table to hold the coordinates array. Petri |