
New update!
CPLua 0.9D is ready
At first sight there aren't many new features in this version.
The update 0.9C -> 0.9D has been an heavy refactoring step, making CPLua a lot more flexible and extensible than the previous versions. CPLua now uses a system of plugins, and it is very easy to create some new plugins and make it interact with CPLua's environment (managing windows etc) and the other plugings.
For example, the text editor and the Lua interpreter inside CPLua are simple plugins loaded in the environment. One could imagine sereval new things, like a picture editor, a project manager, a help browser, a "MyPrograms"-like menu, ...
As CPLua's source code should be available soon, different programmers will get able to create these kind of new plugins and extend the functionalities of CPLua
I had to rewrite a lot of things, thus perhaps some minor bugs that I fixed before reappeared in this version. If you see something weird, don't forget to report it here
The biggest visible change concerns CPLua's main menu. I wanted to reorganise it too (and make it accept any number of commands), thus here is what you will now see when starting CPLua:

According to the suggestion I made recently about the default folders, the functions
require,
dispose,
doscript,
io.file,
pict.save and
pict.load have been modified to use the folder of the calling script as default folder. These last 3 functions were also taking 2 arguments for the path (one for the folder name and another for the file name); they now take only one argument with the complete path.
I added a small menu to the Console window too with some useful things
The bug in pict.capture() has been fixed (thanks for having reported it), and you can now specify a region of the screen to capture (it doesn't have to be the whole screen anymore)

There are several small things I'd like to add before CPLua 0.9RC1, but this version is very close to what the final CPLua 0.9 will be.
Have fun