2014年2月26日

Using command-line Subversion to access project source files

摘要: Help indexAbout source code version control with Software Configuration Management (Subversion)Using command-line svn to access project source filesGetting started with SubversionWorking with files in the SVN repositoryContributing your changes to the SVN repositoryWorking with the repositoryGetting 阅读全文

posted @ 2014-02-26 08:56 Step-BY-Step 阅读(556) 评论(0) 推荐(0) 编辑

Lua 代码编写技巧

摘要: 1.克隆表u = {unpack(table)} 一般克隆长度较小的表2.判断表是否为空if next(t) == nil then.. 判断该表是否为空,包括t={}的情况3.插入表使用t[#t + 1] = value,会比table.insert看起来更加简洁且效果更高4.使用更加简洁的表达形式x = x or "Boyaa" 代替 if x == false or or x = nil then x = "Boyaa" end 阅读全文

posted @ 2014-02-26 08:14 Step-BY-Step 阅读(249) 评论(0) 推荐(0) 编辑

lua语言入门之Sublime Text设置lua的Build System

摘要: 转自:http://blog.csdn.net/wangbin_jxust/article/details/8911956最近开始学习LUA语言,使用Sublime Text作为编辑器,不得不说,对于编辑脚本语言来说,Sublime Text已经很强大了。1.点击工具栏,Tool->Build System->New Build System我这里已经添加过lua的Build System了,所以能看到已经勾选lua选项了。2.在新建的脚本文件中添加以下代码{ "cmd": ["lua", "$file"], " 阅读全文

posted @ 2014-02-26 08:12 Step-BY-Step 阅读(1841) 评论(0) 推荐(0) 编辑

理解lua 语言中的点、冒号与self

摘要: 转载自:http://blog.csdn.net/wangbin_jxust/article/details/12170233lua编程中,经常遇到函数的定义和调用,有时候用点号调用,有时候用冒号调用,这里简单的说明一下原理。[javascript]view plaincopyprint?girl={money=200}functiongirl.goToMarket(girl,someMoney)girl.money=girl.money-someMoneyendgirl.goToMarket(girl,100)print(girl.money)可以看出,这里进行了方法的点号定义和点号调用。[ 阅读全文

posted @ 2014-02-26 06:24 Step-BY-Step 阅读(311) 评论(0) 推荐(0) 编辑

导航