[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Embeding Lua in Pascal
- From: Jeremy Darling <jeremy.darling@...>
- Date: Thu, 17 Dec 2009 11:38:44 -0600
PS: In "Lua Programming Gems" on pages 301 to 311 I try to cover this as much as could be covered in the space. Your local B&N may have a copy you can browse or look at http://www.lua.org/gems/. I'd highly recommend the book either way as there are lots of nice tips, tricks, and information presented in the book that you will have to dig for elsewhere :)
On Thu, Dec 17, 2009 at 11:26 AM, Jeremy Darling <email@example.com>
Warning, shameless plug ahead. The Lua unit that comes with FPC falls short in almost every way. I've got one of my own (comes with source and examples and is also what I used in the Lua Gems book) at http://eonclash.com/ViewProduct.php?ProductID=26
There are problems with it in Delphi, but FPC, GNU Pascal, and the rest seem to be happy with it. There is also a simple (and I mean simple) SDL + Lua + Lazarus game engine on the same site.
You might also be interested in http://www.pascalgamedevelopment.com/ as there are several discussions on it about Lua and Pascal.
2009/12/17 Michal Kolodziejczyk <firstname.lastname@example.org>
On 17.12.2009 09:34, Luciano de Souza wrote:I don't program in Pascal (since TurboPascal days ;) but you can check
> In the official pack, Freepascal come with the unit Lua. It's wonderful
> because I can use Lua without further components. Bu how to do that.
> Even if trying, I could not understand the mechanism to call the
> interpretor, register functions Pascal in Lua, register functions Lua in
> Pascal, convert the types of variables, etc.
some source codes:
There is also http://luapascal.luaforge.net/ but it seems unmaintained
If the Lua unit comes in the official pack, you should ask Freepascal
maintainer for help.