lua-users home
lua-l archive

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


Hi y'all!

Consider these two use cases:

1) For some classes I want to support 'method calls' which are not part of the class, e.g. so you can write obj.foo instead of obj:getFoo() and obj.foo = bar instead of obj:setFoo(bar).

2) When a script is trying to access a global that doesn't exist I'd like to dynamically provide some value from some hash table in java land.

How would you normally solve those problems in LuaJava? In vanilla Lua I guess it would involve metatables, and __index/__newindex.


Also, is LuaJava 1.1 far from release?

Cheers,
 Jonas