摘要:
发现用coroutine处理登陆,交易等异步流程的问题非常简单清晰。同比c++的代码不需要state这个东西。直接上登陆的代码:function co_client_login(User) send_msg_to_loginserver() msg = wait_msg_login(User,{msg_loginserver_logined}) if (not msg.ok) then return end while(true) do msg = wait_msg_login(User,{msg_create_char,msg_del... 阅读全文
摘要:
Lua-L最近发生了点趣事与大家分享下。Stefan是一个想把lua引向mobile的人,他发帖《1》Let's make Lua mobile!-- Persistence: Uses Pluto.-- Safety: -- Untrusted non-frozen scripts should be fine (b/c of sandboxing). -- Untrusted frozen scripts should not be run. -- (No protection against bad bytecode or malformed Pluto images)其中提到了 阅读全文
摘要:
近来用lua开发了近两个月,深感'工欲善其事必先利其器',人家可以在vim上用tab补全,而我在vs2010没有智能感知,经常出笔误。vsLua已经1年多没有动静了,所以上周末自己拿来改了2天,又是第一个c#的project,磕磕碰碰不少,不过终于可以发布了。git host:git@github.com:yujiang/vsLua.gitThe origin of vsLua athttp://vslua.codeplex.com/I just do few work to make it run under vs2010, include:1. update the iro 阅读全文