[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] Objective Lua 0.1
- From: David Given <dg@...>
- Date: Thu, 17 Dec 2009 00:37:49 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
- fnord
do
print("Fnord!")
end
@end
...and then call them like this:
local o = [[MyClass alloc] init]
[o fnord]
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):
http://olua.sourceforge.net/
Yes, it works fine with LuaJIT.
- --
┌─── dg@cowlark.com ───── 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/
iD8DBQFLKX1cf9E0noFvlzgRAm+fAKC+uehaPBQ16CcN2Ty7TcybVMKXhACfQEF2
0NYDVHYbwaFa3twHWRX+9ME=
=nxmL
-----END PGP SIGNATURE-----