王朝网络
分享
 
 
 

Lua 程序设计初阶 Beginning Lua Programming

王朝导购·作者佚名
 
Lua 程序设计初阶 Beginning Lua Programming  点此进入淘宝搜索页搜索
  特别声明:本站仅为商品信息简介,并不出售商品,您可点击文中链接进入淘宝网搜索页搜索该商品,有任何问题请与具体淘宝商家联系。
  参考价格: 点此进入淘宝搜索页搜索
  分类: 图书,进口原版书,计算机 Computers & Internet ,

作者: Kurt Jung著

出 版 社:

出版时间: 2007-8-1字数:版次: 1页数: 644印刷时间: 2007/02/01开本:印次:纸张: 胶版纸I S B N : 9780470069172包装: 线装内容简介

Lua offers a wide range of features that you can use to support and enhance your applications. With this book as your guide, you’ll gain a thorough understanding of all aspects of programming with this powerful language. The authors present the fundamentals of programming, explain standard Lua functions, and explain how to take advantage of free Lua community resources. Complete code samples are integrated throughout the chapters to clearly demonstrate how to apply the information so that you can quickly write your own programs.

目录

Acknowledgmens.

Introduction.

Chapter 1: Getting Situated.

Choosing How to Install Lua.

Finding Your System’s Shell.

Dealing with Tarballs and Zip Files.

Compiling Lua.

Binary Packages.

Additional Tools.

Chapter 2: First Steps.

Numbers and Arithmetic Operations: Basic Interpreter Usage.

Interpreter Know-How.

Numerical Gotchas.

Variables and Assignment.

Strings.

Relational Operators and Boolean Values.

The nil Value.

Boolean Operators.

The Concatenation, Length, and Modulo Operators.

Automatic Conversion of Operands.

Precedence and Associativity.

Variables and Values.

Comments.

Expressions and Statements.

Compound Statements.

Chapter 3: Extending Lua with Functions.

Return Values.

Chunks as Functions.

Variable Scope.

Understanding Side Effects.

Functions Calling Functions.

Functions as Values.

Whitespace, Semicolons, and Function Calls.

Upvalues and Closures.

Chapter 4: Working with Tables.

Tables Introduced.

A Shorter Way to Write Some Keys.

Altering a Table’s Contents.

Tables as Arrays.

Array Length.

Looping through Tables.

Tables of Functions.

Functions with Variable Numbers of Arguments.

Keyword Arguments.

Different but the Same.

Building Other Data Structures from Tables.

Custom-Made Loops.

Global Variable Environments.

Chapter 5: Using Strings.

Basic String Conversion Functions

String Length.

Converting Between Characters and Character Codes.

Formatting Strings and Numbers with string.format.

Input/Output.

Pattern-Matching.

Chapter 6: Handling and Avoiding Errors.

Kinds of Errors.

Handling Errors.

Locating Errors.

Chapter 7: Using Modules.

Interfaces and Implementations.

The require Function.

Where to Put Modules.

Preserving a Module’s Interface.

Module Bookkeeping.

Bytecode.

Namespaces.

The module Function.

C Modules.

Chapter 8: Extending Lua’s Behavior with Metamethods.

Using Concatenation and Arithmetical Operators on Tables.

Relational Metamethods.

Indexing and Call Metamethods.

Non-Tables with Metamethods. 、

Non-Syntactical Metamethods.

Metamethod Applicability.

Chapter 9: Handling Events Naturally with Coroutines.

Coroutines and Program Control.

Managing Concurrent Tasks.

Retaining State.

Handling Events Simply.

Chapter 10: Looking Under the Hood.

Bytecode and luac.

Garbage Collection.

The Implementation of Tables and Strings.

The Debug Library.

Chapter 11: Exploring Lua’s Libraries.

Core Library.

Coroutine Library.

Package Library.

String Library.

Table Library.

Math Library.

Input/Output Library.

Operating System Library.

Debugging Library.

Chapter 12: Using Community Libraries.

Library Overview.

How Lua Interacts with Libraries.

The pack Binary Structuring Library.

The cURL File Transfer Library.

The gd Graphics Library.

The SQLite Database Library.

Chapter 13: Interfacing Lua with Other Languages.

How C Programs Use Lua.

Communicating Between Lua and C.

Calling Lua from C.

Working with Userdata.

Indexing Values in C.

Retaining Values in C.

Layering Your Extension Library.

Chapter 14: Managing Information with Databases.

Some Basic Relational Database Concepts.

SQL, LuaSQL, and MySQL.

Chapter 15: Programming for the Web.

A Web Server Primer.

Dynamic Web Content.

Executing CGI Scripts.

Installing a Web Server.

Testing Your Web Server with Static Content.

Serving Dynamic Web Content.

Interactive CGI Applications.

The Kepler Project.

Chapter 16: Connecting to a Larger World.

Installing LuaSocket.

Network Overview.

Using LuaSocket for Network Communication.

Handling Multiple Persistent Connections.

The Application Protocols.

Networking with Lua and Streams.

Chapter 17: Programming Games with Lua.

Understanding Why and When to Use Lua.

Simple 2-D Action Game Using SDL.

Chapter 18: Carrying Lua with You.

Getting Started with Plua.

Exploring Plua’s Features.

Plua on the Mothership.

Programming with Plua.

Chapter 19: Fitting into the Lua Community.

The Lua Web Site.

The Lua Reference Manual.

Framing Questions.

The Lua Mailing List.

The Lua Chat Room.

Forums.

The Lua Wiki.

LuaForge.

Annual Workshops.

Appendix A: Answers.

Index.

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
>>返回首页<<
推荐阅读
 
 
频道精选
 
更多商品
可持续设计:结构、规划与生态学  Sustainable Design: Ecology, Architecture, and Planning
Asterisk 傻瓜书Asterisk For Dummies
面向架构服务的傻瓜书 Service Oriented Architecture For Dummies
国际商法
成为大师级管理者:竞争价值途径 Becoming a Master Manager: A Competing Values Approach
现代主义的临界点:后现代主义发展方向 第5版  Critical Modernism
iPod & iTunes 初阶 第4版 (计算机硬件类) iPod & iTunes For Dummies
编程入门傻瓜书 Beginning Programming For Dummies (附光盘)
建筑综合实践:把握设计-建造、快速通道与建立信息模式  Integrated Practice in Architecture
ASP.NET 2.0 大全参考傻瓜书 ASP.NET 2.0 All-In-One Desk Reference For Dummies
静静地坐在废墟上,四周的荒凉一望无际,忽然觉得,凄凉也很美
© 2005- 王朝网络 版权所有