In a previous article, I showed you a simple example of how you can call a function that's written in C from Lua, and a second example that extended that - passing simple parameters in to the C function, and returning results.
But it's often more complex that that - for example, you may with to pas ....
This short article shows you how to call a function that's written in C from a program written in Lua, how to write the function that's called, and how to turn it into an appropriate library and load that library. It then goes on (as a second example) to show you how to pass variables from the Lua ....
It's exactly two years since we opened our doors at Well House Manor for our first residential training course delegate, and moved from being just a training provider to being a provider of overnight accommodation too.
And - goodness me - how much water has flowed under the bridge since then ... o ....
With courses such as Lua Programming, our delegates come from far and wide - it's very much a niche subject, and that's why we provide facilities that are a little different to most training companies - such as our own hotel facilities.
The wide spread of our delegates also means that we'll often ....
In formatted printing, you can often use a leading "+" in the format string to force a positive sign to be added in front of positive numbers - for example "%+4d" means an integer, to base 10, 4 character positions as a minimum, right justified.
Here's an example of that, in code, in Lua
for john ....
It's standard practise for on line bookings these days to take credit or debit card details as a booking security, and we're no exception at Well House Manor - our hotel for business visitors to Melksham, Wiltshire. There are very many security issues involved, and I am not going to describe what w ....
From my email
Subject: Application for any post.
Dear Sir/Madam;
I am writing in response to the job vacancy announcement of the above mentioned post. The position requirements and my skills are a perfect match.
As you'll see on my enclosed resume, I have the educational backg ....
So warm in October that no-one needed a coat. So calm that not a leaf blew in the breeze. So bright that a stop of just two and a half hours lead to a plethora of pictures.Please click on any picture for a larger copy in another window. ....
Yesterday, we visited Alfred the Great, who sits cast in stone in the centre of Wantage in Berkshire.
OK - the visit was really to Oxford, but we passed over the Downs from Marlborough through Axford and Ramsbury, Membury and Lambourn, Wantage and Frilford on the way to give our international visi ....
Here's a sequence of numbers. 3, 7, 7, 4, 2, 6, 4, 1, 5. What are the following three numbers?
Quite an interesting puzzle, but it's a sequence of numbers I came across this morning ... and the following three were 3, 7 and 5 I'll tell you the trick of the sequence at the end of this article!
I h ....