lua-users home
lua-l archive

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

On Tue, Jan 16, 2001 at 08:54:44PM -0200, Luiz Henrique de Figueiredo wrote:
> >I have implemented a simple binary search tree
> Why? Searching in Lua is almost always wrong, given that tables give you
> direct, constant-time access to data. Or am I missing something?
> --lhf

Why? Simply to give me something to do in Lua. Or, more interestingly, I could be writing a 3D engine in Lua that uses a BSP Tree.

I am aware that tables provide direct access to data, in fact I am using that very feature. 

Regardless of what my intentions are, any suggestions? (I'm waiting for another of those Lua life-saving one-liners that I'm sure someone will think of. Lua always seems to come through somehow. :) )