What is a metatable?
In Lua, you can hold a whole bundle of information about something in a table, which gives you a convenient "handle" to that information - be that information in the form of values, or behaviours (i.e. conventional variable of code). This is illustrated in earlier articles on ....
Are you intrigued by the same view taken many years apart?
Two pictures of Melksham station (roughly from the same spot), dated "Circa 1940" and Friday, 11th May 2012.
There are many more old pictures of Melksham, and new pictures too, on show in the Well House Collection - a museum for Melksh ....
Do you want to attend an event in London on a Sunday? There's museums, sporting fixtures and so much more, and what better way than to go by train to London. The requirement was rather proven by last year's trial service over just eight sundays when a train ran from Westbury at 07:30 with a Lond ....
Since tables in Lua can hold data members of different types, they can be used as the base structure for an Object Oriented design approach, where each table represents an object with numbers, strings, other tables ("objects") and callable blocks ("functions" or methods) as members. And if you take ....
Lua's Tables are its "collection" variables - in other words, they hold a whole series of other variables, which can be looked up by a key of some sort.
I can set up a table like this:
occupancy = {2,5,5,3,2}
which will set up a Lua variable called "occupancy" with five members, numbere ....
Yesterday was the first day of our public "Learning to progam in Lua" course.
Lua is an open source language, with a very open license indeed which allows it to be incorporated into other products without raising complex onward licensing issues even if the resultant product isn't itself open source ....
We have visitors staying at the hotel who arrived over the weekend from China, and wanted to see Stonehenge today. It's when you get a request like that that you realise just how impractical this is - especially on a bank holiday - by public transport. So I ran them over to Stonehenge, which I've ....
The doggies and I went for a walk down by the wiver towards Twowbwidge today. And we took some lovely pictures.
There were lots of twains wunning by today - the main Bewks and Hants line being closed for wepair. And a beautiful cloudy sky.
This last week, The Sun got itself into twouble by picki ....
Soon after you start to program, you'll learn that you want to re-use code. And that re-use will sometimes come in the form of loops, and at other times in the form of named blocks of code which you'll call up from multiple places in your program, or indeed from multiple programmers.
• A good ....