`
lua
  • 浏览: 74574 次
  • 性别: Icon_minigender_1
  • 来自: 大连
文章分类
社区版块
存档分类
最新评论
文章列表
from http://sunxiunan.com/?p=1289 1, check handle leak. Use Lua script to search the codes.   2, check memory leak. If you use CRT, you could use: _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);//_CrtSetBreakAlloc(182366); // http://msdn.microsoft.c ...
最近迷上了使用Lua写一些方便的小程序,也看了一些关于lua的文档。发现不少人经常问一些很常见的问题,感觉好像还没有找到学习lua的好办法。下面介绍一下个人经验。   1,学习lua需要什么基础? 很显然,lua不适合作为你 ...
from http://sunxiunan.com/?p=1285   目的:使用lua进行某个目录下特定类型或指定文件名的查找,并给出一个查找使用核心对象的函数实例。 require"lfs" function findindir (path, wefind, r_table, intofolder)     for file in lfs.dir(path) do         if file ~= "." and file ~= ".." then             local f = pat ...
http://sunxiunan.com/?p=1258   为了方便起见,最好安装lua for windows,里面已经包含了很多有用的第三方模块。   require(’luacom’) — luacom ie = luacom.CreateObject(”InternetExplorer.Application”) ie:Navigate2(”http://sunxiunan.com”) ie.Visible = true 使用lua调用excel,然后往cell里面填一些数据。 require(’luacom’) — luacom – Excel ...
http://sunxiunan.com/?p=1249   local tbl = {"one", "two", "three", ‘five’} local count = #tbl local inc = 0 function Iter(tableinput) return function() if inc > count then return end inc = inc + 1 return tableinput[inc], inc ...
from http://sunxiunan.com/?p=1239 lua是一个很有意思的编程语言,我是用它写base64编码辅助工具时候发现的。 lua是巴西里约热内卢大学的一个研究项目,最新版本5.1,真正变成一个人人皆知的编程语言还是因为魔兽世界这个网络游戏。因为暴雪选择了lua作为插件语言,一时间变得众人皆知。现在国内也有不少网络游戏使用lua作为脚本语言。 lua的特点一个是小,整个vm,编译器以及第三方库加起来可能也不过就几兆,vm可以单独运行,大概也就需要100k左右内存,非常适合嵌入式设备或者掌上设备使用,比如psp就有一个lua player,而google的gphone ...
Global site tag (gtag.js) - Google Analytics