[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Binary Modules for Lua [was Re: External modules]
- From: "Martin Spernau" <martin@...>
- Date: Thu, 21 Nov 2002 23:31:31 +0100
From: "Thatcher Ulrich" <firstname.lastname@example.org>
> I took the liberty of putting together the bare bones of a Binary
> Module system for Lua 4.0, based on Ignacio's uselib code.
I went and created my very first Luamodule to have a simple one-file
A very simple Lua extension that only defines one function 'fuzzy'.
thetext = [[A lnger Text to saerch]]
searchstr = "longer"
-- gives about 54.54
-- gives 100, a complete match
This Lua extension was built to be used with the 'loadmodule' by Thatcher
Main goal was to write a 'tutorial' like minimal extension that is
completely seft-sufficent, only requiring one C source file.
A Win32 Lua binary, the compiled luafuzzy.dll along with the source can be
downloaded from the Wiki.
As this is my very first real Lua-module, I don't think it's flawless ;)
Please use only as example!
Comments very welcome,