Skip to main content
GameDev.net gamedev.net
🔒 Locked

Operator Overloading Lua, Luna, C++

Started by AverageJoeSSU Mar 9, 2009 at 3:49 PM 1 replies 2.5k views
Original Post
AverageJoeSSU
AverageJoeSSU
I have a C++ class that was wrapped using Luna, is it possible to use operator overloading in Lua and call the proper operator in C++?
------------------------------ redwoodpixel.com
ddn3
ddn3
Luna is a light weight binding library ( only 1 file really ). It's not really up to the task of the heavy lifting your asking for. Give Luabind, mLuabind or toLua a try, they can bind C++ classes more comprehensively.

I believe Luabind and mLuabind does support operator overloading in Lua but there are some operators which don't exist in Lua to bind too.

Good Luck!

-ddn

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.