edisonwsk / lua-alchemy

Automatically exported from code.google.com/p/lua-alchemy
0 stars 0 forks source link

Implement more sugar #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
example1 = as3.package.String.new("Hello There")
as3.package.MyClass.text = "hello"
example1 = as3.tolua(as3.package.MyClass.SOME_CONSTANT)
as3.package.MyClass.anotherFunction(1, 6, 999)

Also allow as3.package("String").new() etc. syntax -- to save proxy object
creation.

Also update wiki

http://code.google.com/p/lua-alchemy/wiki/ForeignFunctionInterface

Original issue reported on code.google.com by aglad...@gmail.com on 22 Dec 2008 at 11:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Also need to separate namespace calls vs class calls

as3.package.MyClass.anotherFunction(42)

vs

as3.package.flash.utils.getQualifiedClassName(as3.new("Number", 42))

Original comment by aglad...@gmail.com on 23 Dec 2008 at 8:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
local a = path.more.path.value 

would always expand to

local a = as3.tolua(as3.get(as3.class("path.more::path"), "value"))

(Namespace constants are to be dealt with raw api)

Original comment by aglad...@gmail.com on 23 Dec 2008 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by aglad...@gmail.com on 4 Jan 2009 at 10:57