usesLua,LuaLib;typeTMyLua=class(TLua)publishedfunctionHelloWorld(LuaState:TLuaState):Integer;end;functionTMyLua.HelloWorld(LuaState:TLuaState):Integer;varArgCount:Integer;I:integer;beginArgCount:=Lua_GetTop(LuaState);writeln('Delphi:HelloWorld');writeln('Arguments: