User:Gaoxia

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Gaoxia (talk | contribs) at 21:29, 11 October 2005. It may differ significantly from the current version.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD><TITLE>lua-users wiki: Tutorial Directory</TITLE> <LINK TYPE="text/css" REL="stylesheet" HREF="/styles/main.css"> </HEAD>

<BODY >

<a href="/cgi-bin/wiki.pl?action=search&string=TutorialDirectory&body=1" title="List pages referring to TutorialDirectory">Tutorial Directory</a>

<tbody> </tbody>
<a href="/"> <img src="/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a>
<tbody> </tbody>
<img src="/images/nav-elbow.png" alt="" width="48" height="40"> <a href="/wiki/" class="nav">wiki</a>


You can find more about this page in <a href="/wiki/LuaTutorial" >LuaTutorial</a>. It is suggested you read the topics from top to bottom, as they increase in complexity. <a href="/wiki/TutorialExamples" >TutorialExamples</a> explains how the examples have been created and you can follow them. The tutorial is written for the current version of Lua, version 5.0. The <a href="/wiki/LuaShortReference" >LuaShortReference</a> is a useful helper. If you would like to make any comments about the tutorial please do so on the <a href="/wiki/TutorialComments" >TutorialComments</a> page (or contact the primary author <a href="/wiki/NickTrout" >NickTrout</a>).

  • Introductory topics.
    • <a href="/wiki/LuaTypesTutorial" >LuaTypesTutorial</a> - A gentle introduction to variable types used in Lua.
    • <a href="/wiki/AssignmentTutorial" >AssignmentTutorial</a> - More on setting variable values.
    • <a href="/wiki/NumbersTutorial" >NumbersTutorial</a> - The Lua number type and related functions.
    • <a href="/wiki/StringsTutorial" >StringsTutorial</a> - String (text) usage and related functions.
    • <a href="/wiki/TablesTutorial" >TablesTutorial</a> - Lua tables (arrays) and related functions.
    • <a href="/wiki/ExpressionsTutorial" >ExpressionsTutorial</a> - Performing calculations.

  • Programming in Lua.
    • <a href="/wiki/FunctionsTutorial" >FunctionsTutorial</a> - Introduction to functions.
    • <a href="/wiki/ControlStructureTutorial" >ControlStructureTutorial</a> - Keywords if, while, repeat, for, break.
    • <a href="/wiki/ForTutorial" >ForTutorial</a> - Detail on the for statement.
    • <a href="/wiki/FunctionCallTutorial" >FunctionCallTutorial</a> - Passing arguments and returning values.
    • <a href="/wiki/ScopeTutorial" >ScopeTutorial</a> - Rules about where variables live and the local keyword.

  • Lua standard libraries - Brief explanation and examples of usage of each.
    • <a href="/wiki/CoreFunctionsTutorial" >CoreFunctionsTutorial</a> - Basic functions e.g. dofile, assert, error, etc.
    • <a href="/wiki/MathLibraryTutorial" >MathLibraryTutorial</a>
    • <a href="/wiki/StringLibraryTutorial" >StringLibraryTutorial</a> - (text)
    • <a href="/wiki/TableLibraryTutorial" >TableLibraryTutorial</a> - (arrays)
    • <a href="/wiki/IoLibraryTutorial" >IoLibraryTutorial</a>
    • <a href="/wiki/OsLibraryTutorial" >OsLibraryTutorial</a>
    • <a href="/wiki/DebugLibraryTutorial" >DebugLibraryTutorial</a>

  • More advanced Lua concepts.
    • <a href="/wiki/IteratorsTutorial" >IteratorsTutorial</a> - Writing custom for iterators.
    • <a href="/wiki/PatternsTutorial" >PatternsTutorial</a> - String searching.
    • <a href="/wiki/GarbageCollectionTutorial" >GarbageCollectionTutorial</a> - What happens to deleted objects?
    • <a href="/wiki/CoroutinesTutorial" >CoroutinesTutorial</a> - Multiple functions running at the same time.
    • <a href="/wiki/ThreadsTutorial" >ThreadsTutorial</a> - Using Lua in a pre-emptive threading environment.
    • OptimisationTutorial<a href="/cgi-bin/wiki.pl?action=edit&id=OptimisationTutorial" >?</a> - Notes on getting good performance from Lua.

    • <a href="/wiki/WeakTablesTutorial" >WeakTablesTutorial</a> - Special table mode where elements are weak references.
    • EnvironmentsTutorial<a href="/cgi-bin/wiki.pl?action=edit&id=EnvironmentsTutorial" >?</a> - Lua's global namespace mechanism.
    • <a href="/wiki/MetamethodsTutorial" >MetamethodsTutorial</a> - Lua's powerful extension mechanism.
    • <a href="/wiki/ObjectOrientationTutorial" >ObjectOrientationTutorial</a> - An introduction to simulating classes.
    • <a href="/wiki/InheritanceTutorial" >InheritanceTutorial</a> - A technique for implementing OO inheritance in Lua.

I'd like us to deal with the C API in a separate section. Also, I think the API should be dealt with in a more methodical manner. The code donated is more of a sample than a tutorial about the API. --NDT

Fair enough -- but I couldn't find anywhere else to put the binding enums example. Please feel free to reorganize. -- <a href="/wiki/RiciLake" >RiciLake</a>

  • C API
    • <a href="/wiki/CppLuaDataPassingTutorial" >CppLuaDataPassingTutorial</a> - Example app illustrating how to pass data into a lua script from C++, and how to return data back to C++
    • <a href="/wiki/CppLuaArgumentPassingTutorial" >CppLuaArgumentPassingTutorial</a> - Example code illustrating how to pass data between a C++ and a lua script.
    • <a href="/wiki/SimpleLuaApiExample" >SimpleLuaApiExample</a> - A simple example of how to interface Lua from C.
    • <a href="/wiki/BindingEnumsToLua" >BindingEnumsToLua</a> - A technique for synchronizing C enums with a Lua API.
    • <a href="/wiki/BuildingModules" >BuildingModules</a> - How to properly build C extension modules for Lua.

Including the various tutorials, there is also lots <a href="/wiki/SampleCode" >SampleCode</a> available which explains the use of Lua in more detail and in practical applications.


<a href="/wiki/FindPage" >FindPage</a> · <a href="/wiki/RecentChanges" >RecentChanges</a> · <a href="/cgi-bin/wiki.pl?action=editprefs" >preferences</a>

<a href="/cgi-bin/wiki.pl?action=edit&id=TutorialDirectory" >edit</a> · <a href="/cgi-bin/wiki.pl?action=history&id=TutorialDirectory" >history</a>
Last edited September 2, 2005 12:58 am GMT <a href="/cgi-bin/wiki.pl?action=browse&diff=1&id=TutorialDirectory" >(diff)</a></body></html>