lua-users home
lua-l archive

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

>vertex_vector[20, 'x'] = 2.5

Would vertex_vector(20, 'x') be a suitable solution? If so, you just have to implement the __call metamethod. I disagree with your "multi-indexing" as, personally, it seems less readable; then again, I'm probably not one of your target users.

Good luck,
-- Matthew P. Del Buono