lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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

...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):

Yes, it works fine with LuaJIT.

- -- 
┌─── ───── ─────
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -