[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [ANN] Objective Lua 0.1
- From: David Given <dg@...>
- Date: Thu, 17 Dec 2009 00:37:49 +0000
-----BEGIN PGP SIGNED MESSAGE-----
And a merry Winter Veil to you all!
I'm very pleased to announce the first *real* version of Objective Lua.
This time it's an actual real program, with real documentation and
everything, which you can really use to write code. For real.
Objective Lua is a translation skin on top of stock Lua that allows you
to use Objective-C like class and method syntax in Lua. You can define
classes like this:
@class MyClass : olua.lib.Object
...and then call them like this:
local o = [[MyClass alloc] init]
With Objective Lua, you get:
- a formal object orientation framework
- Objective-C style keyworded method calls
- exception handling (including 'finally'!)
- a (minimal) class library
- a documentation tool to generate API docs from marked up comments
- seamless interoperability with stock Lua
It works by adding a handler to the Lua package loader that, when
prompted, reads in .olua files, parses them, turns them into standard
Lua code, and then loads them normally. The result is that once you've
done "require 'olua'" you can transparently require any .olua file and
it All Just Works. Because the result is proper Lua code, it all runs at
Lua speed with Lua interoperability. And no native code is required.
See the Sourceforge page for more details (where you can also browse the
API documentation and see a (very noddy) example program):
Yes, it works fine with LuaJIT.
┌─── ｄｇ＠ｃｏｗｌａｒｋ．ｃｏｍ ───── http://www.cowlark.com ─────
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----