- 浏览: 77038 次
- 性别:
- 来自: 大连
-
最新评论
-
bluegene:
要等这个东西能真正的实战 估计还得等上一阵子,特别是googl ...
Google的Go编程语言使用初探 -
七猫:
我只想知道我能用他来做什么比较方便。
Google的Go编程语言使用初探 -
linkerlin:
goroutine从 名字上 看 就是 从 lua抄来的 .
...
Google的Go编程语言使用初探 -
mryufeng:
go的语言特性很强大 我最喜欢的是1. defer2. int ...
Google的Go编程语言使用初探 -
andy_ghg:
trace 写道tsq 写道似乎还不错。不过名字起得不太好,g ...
Google的Go编程语言使用初探
文章列表
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 ...
- 2009-08-17 15:33
- 浏览 1121
- 评论(0)
from http://sunxiunan.com/?p=1239
lua是一个很有意思的编程语言,我是用它写base64编码辅助工具时候发现的。
lua是巴西里约热内卢大学的一个研究项目,最新版本5.1,真正变成一个人人皆知的编程语言还是因为魔兽世界这个网络游戏。因为暴雪选择了lua作为插件语言,一时间变得众人皆知。现在国内也有不少网络游戏使用lua作为脚本语言。
lua的特点一个是小,整个vm,编译器以及第三方库加起来可能也不过就几兆,vm可以单独运行,大概也就需要100k左右内存,非常适合嵌入式设备或者掌上设备使用,比如psp就有一个lua player,而google的gphone ...