Other Standard Library features.
Exercises, examples and other material relating to training module U112. This topic is presented on public courses
Learning to program in Lua,
Lua Programming
Lua Programming - Learning to program in Lua and make good use of the language
Our public "Lua Programming" course takes you from the
basics of the language
... http://www.wellho.net/course/ubfull.html [course] |
Learning to program in Lua - Learning to program in Lua and make good use of the language
"Learning to program in Lua" takes you from the basics of
computer ... http://www.wellho.net/course/ulfull.html [course] |
Here are a handful of "one line" answers from the end of the Lua Course I was running at the end of last week
• Command line parameters in Lua are ... http://www.wellho.net/mouth/1847_Lua ... ions-.html [short article] |
--[[
In Lua, Global variables are accessible via the _G
table ...
]]
function tellme()
for n,v in pairs(_G) do
print (n,v)
... http://www.wellho.net/resources/ex.php4?item=u112/globals [code sample] |
--[[
There is no directory listing function in Lua as
it's a compact language ... but there may be some
alternatives in your environment library. Here's
... http://www.wellho.net/resources/ex.php4?item=u112/dlisting [code sample] |
--[[ What operating system?
Lua has only a small library of built in functions - often
you have to pull in a library from another source, or write
your ... http://www.wellho.net/resources/ex.php4?item=u112/getos [code sample] |
--[[
Want to know what's available in the os module in Lua?
Well - everything's a table, so you can find the names
at least by using pairs (or next) ... http://www.wellho.net/resources/ex.php4?item=u112/ons [code sample] |
This topic is presented on public courses
Learning to program in Lua,
Lua Programming
Examples from our training material
| dlisting | Directory listing |
| getos | What is my host operating system (in Lua) |
| globals | Global variables via _G |
| mathfuncs | Maths functions and random number generators |
| ons | What is in os module? |
| timtimer | Time / date and timers |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Maths functions - trig, log, random, geometric, etc.
Time and date functions.
CPU time.
Environment, Metatable and Chunk-Loading Functions.
Vararg-Related Functions
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.