lua-users home
lua-l archive

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


On Monday 15 April 2002 10:17, you wrote:
> Hi,
>
> I am not sure if it's allowed to ask questions about
> 4.1w4, else sorry.
> But I need a way to register a class in Lua from C++.
> I used Luna in Lua 4.0, but it doesn't work in w4 anymore.
> Now I am creating my own interface, but I can't
> find any documentation how to do it.
> Hope there is someone who can help me, maybe with
> a little example or some advice.
> Thanks in advance,
>
> Richard van Zon.

I've put a small example binding to the GD library on the wiki.

  http://lua-users.org/wiki/BindingWithMetatableAndClosures

It's in C, but it should give you some ideas.

Cheers,

- Peter