代码搜索:Lua

找到约 9,588 项符合「Lua」的源代码

代码结果 9,588
www.eeworm.com/read/228537/4764558

lua tdirectivelua.lua

function func () return 5 end
www.eeworm.com/read/228537/4764562

lua tdirective.lua

assert(a==3) assert(A==4) assert(func()==5) print("Directive test OK")
www.eeworm.com/read/228537/4764565

lua tvariable.lua

assert(i==1) assert(f==2) assert(d==3) assert(s=="Hello world") assert(n=="Hi there") n = "Hello" assert(n=="Hello") assert(a.i==11) assert(a.f==12) assert(a.d==13) assert(a.s=="Hello world from clas
www.eeworm.com/read/228537/4764567

lua tmodule.lua

-- test valid access assert(A.a==1) assert(A.B.b==2) assert(A.B.C.c==3) -- test invalid access assert(A.B.a==nil) -- no inheritance assert(A.B.C.a==nil) assert(A.b==nil) -- no access the
www.eeworm.com/read/228537/4764570

lua tclass.lua

if not Test then local loadlib if not package then loadlib = _G['loadlib'] else loadlib = package.loadlib end f, e, eo = loadlib("./libtclass.so", "luaopen_tclass") if f then f() else p
www.eeworm.com/read/228537/4764571

lua tconstant.lua

assert(FIRST==M.FIRST) assert(FIRST==A.FIRST) assert(SECOND==M.SECOND) assert(SECOND==A.SECOND) assert(ONE==M.ONE) assert(ONE==A.ONE) assert(TWO==M.TWO) assert(TWO==A.TWO) print("Constant test OK")
www.eeworm.com/read/228537/4764578

lua tarray.lua

for i=1,10 do assert(a[i]==i) end for i=2,10 do assert(p[i-1].y==p[i].x) end for i=1,10 do assert(M.a[i]==i) end for i=2,10 do assert(M.p[i-1].y==M.p[i].x) end for i=1,10 do assert(pp[i].x==
www.eeworm.com/read/228537/4764579

lua tfunction.lua

local p = Point:new(1,2) local q = Point:new() local x, y = p:get() local c = {}; q:get(c) assert(x==1 and y==2) assert(c[1]==0 and c[2]==0) q:set(4,5) q:setname("mypoint") p:setconst(q) local r =
www.eeworm.com/read/228537/4764590

lua variable.lua

-- tolua: variable class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereun
www.eeworm.com/read/228537/4764591

lua class.lua

-- tolua: class class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder